On Tue, Mar 25, 2008 at 9:08 AM, tom <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I try to add some data through the Admin interface but I get an SQL
> Error when I try to add a ManyToMany Relation.
>
> The model:
> class Artist(models.Model):
>    name = models.CharField(max_length=200, blank=True)
>    abstract = models.TextField(blank=True, help_text=_('Give a short
> introduction about your music.'))
>    logo = UserImageField(upload_to='%(base_path)s/Artist/Logo/',
> blank=True)
>    image = UserImageField(upload_to='%(base_path)s/Artist/Image/',
> blank=True)
>    myspace_link = models.URLField(verify_exists=True, blank=True,
> help_text=_('You can specify your MySpace link here.'))
>    youtube_link = models.URLField(verify_exists=True, blank=True,
> help_text=_('You can specify a link to your Youtube videos here.'))
>    home_dir = models.CharField(max_length=200, editable=False)
>    slug = models.SlugField(prepopulate_from=('members', 'name'))
>    members = models.ManyToManyField(User, unique=True,
> related_name='users_artist_members')
>    fans = models.ManyToManyField(User, blank=True, unique=True,
> symmetrical=False, related_name='users_artist_fans')
>

(Also the doc for symmetrical says it applies only to self-referencing
ManyToMany, so that doesn't look like it belongs there either.)

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to