Recursive Relation in django-taggit

2011-08-18 Thread Eyad Al-Sibai
I have created the following TagBase and each category can have subcategory... Will this work? How can I override its add function in the TaggableManager? class Category(TagBase): parent = models.ForeignKey('self', blank=True, null=True, related_nam

Re: Meta, order_with_respect_to for recursive relation

2009-03-07 Thread Malcolm Tredinnick
On Sat, 2009-03-07 at 16:37 -0800, NicoEchániz wrote: > Hi, > > I have a model with a recursive relation: > > class Category(models.Model): > name = models.CharField(max_length=100, blank=False, > db_index=True) > parent_category = models.ForeignKe

Meta, order_with_respect_to for recursive relation

2009-03-07 Thread NicoEchániz
Hi, I have a model with a recursive relation: class Category(models.Model): name = models.CharField(max_length=100, blank=False, db_index=True) parent_category = models.ForeignKey('self', related_name='child_categories', blank=True, null=True) And I want it's m

Re: recursive relation

2007-07-16 Thread rskm1
On Jul 16, 3:36 pm, "Lic. José M. Rodriguez Bacallao" <[EMAIL PROTECTED]> wrote: > How can I make a recursive one-to-many relation? > > -- > Lic. José M. Rodriguez Bacallao According to http://www.djangoproject.com/documentation/model-api/#many-to-one-relationships ``To create a recursive relati

recursive relation

2007-07-16 Thread Lic. José M. Rodriguez Bacallao
How can I make a recursive one-to-many relation? -- Lic. José M. Rodriguez Bacallao Cupet - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por aficionados, el ti