#12641: ManyToMany relationship with self, symmetrical=True,
related_name='something' doesn't work
---------------------------+------------------------------------------------
 Reporter:  hwmrocker      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.1       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 {{{
  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)
 }}}


 When I do this I cannot check the parents of an object, since there is no
 Property created. When I try to use the related_name with an relationship
 to an other object than self everything works fine.

 What I want is a symmetrical link to the same object, 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12641>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.


Reply via email to