Re: Parents and Childrens in the same table

2007-09-03 Thread qwerty
Thanks! 2007/9/3, Ramiro Morales <[EMAIL PROTECTED]>: > > > On 9/3/07, qwerty <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I've a category table, where a category can be related as a "child" to > > another, and a "parent" to others. > > > > Is there any django-way of doing this, where I've methods l

Re: Parents and Childrens in the same table

2007-09-03 Thread Ramiro Morales
On 9/3/07, qwerty <[EMAIL PROTECTED]> wrote: > Hi, > > I've a category table, where a category can be related as a "child" to > another, and a "parent" to others. > > Is there any django-way of doing this, where I've methods like > modelinstance.childrens () and modelinstance.parent()? > There is

Parents and Childrens in the same table

2007-09-03 Thread qwerty
Hi, I've a category table, where a category can be related as a "child" to another, and a "parent" to others. Is there any django-way of doing this, where I've methods like modelinstance.childrens() and modelinstance.parent()? Thanks, Angel --~--~-~--~~~---~--~~