On 8/30/06, Siah <[EMAIL PROTECTED]> wrote:
Somehow though, if I go to ChildObj and ask for its children, I willget the FatherObj as well. What am I doing wrong?By default, m2m fields are symmetrical - what you put in at one end, you can see from the other.
If you want to make m2m fields non-symme
Take a look at: http://www.djangoproject.com/documentation/models/m2m_and_m2o/CoreyOn Aug 29, 2006, at 12:15 PM, Siah wrote:Hello,Given this model:class Person(models.Model): name = models.CharField(maxlength=200) children = models.ManyToManyField('self')I can do: FatherObj.children.add(Ch
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
3 matches
Mail list logo