ManyToMany relationship with self, symmetrical=True, related_name='something' doesn't work
|Reported by:||hwmrocker||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.