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
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
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
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
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
5 matches
Mail list logo