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 like
> > modelinstance.childrens () and modelinstance.parent()?
> >
>
> There is some meterial in the wiki about that:
>
> http://code.djangoproject.com/wiki/CookBookDataModels
> http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic
> http://code.djangoproject.com/wiki/CookBookDataModels
>
> hth
>
> --
> Ramiro Morales
>
> >
>

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



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 some meterial in the wiki about that:

http://code.djangoproject.com/wiki/CookBookDataModels
http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic
http://code.djangoproject.com/wiki/CookBookDataModels

hth

-- 
 Ramiro Morales

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



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

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---