Hi,

I am relatively new with Django but I like what I have seen so far.

why does this not work?

class Tag(models.Model):
    text = models.CharField(max_length=200)
    children = models.ManyToManyField('self', blank=True, null=True,
symmetrical=True, related_name='parents')
    synonyms = models.ManyToManyField('self', blank=True, null=True)

What i want is a symmetrical link to the same project, like a linked
list with the difference that these is a many to many relationship.
Since there is also something like synonyms treebear and mptt are not
usefull for me.

Is there another possibility to achieve this. i thought about to
create a second element called parents and overwrite the add function
for them. To guarantee that there is a symmetrical. but i don't know
how to pass it trough, do i have to check if it is already in the
other before i add to prevent infinite loop or is there a better to do
it?

Thanks for your Help
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to