Hello,
Given this model:
class Person(models.Model):
name = models.CharField(maxlength=200)
children = models.ManyToManyField('self')
I can do:
FatherObj.children.add(ChildObj)
Somehow though, if I go to ChildObj and ask for its children, I will
get the FatherObj as well. What am I doing wrong?
In my real example, the childObj can have many parent nodes, thus
many-to-many is required.
Thanks,
Sia
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---