Re: Directional Many-to-many

2006-08-29 Thread Russell Keith-Magee
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

Re: Directional Many-to-many

2006-08-29 Thread Corey Oordt
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:   

Directional Many-to-many

2006-08-29 Thread Siah
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