Re: recursive relationship foreignkey

2007-08-19 Thread Malcolm Tredinnick
On Sun, 2007-08-19 at 18:41 -0400, Francis Lavoie wrote: > Hi, > > I still have this error with null=True . > > model.py: > class Category(models.Model): > name = models.CharField(max_length=36) > description = models.CharField(max_length=200) > parent = models.ForeignKey('self', nu

Re: recursive relationship foreignkey

2007-08-19 Thread Francis Lavoie
Hi, I still have this error with null=True . model.py: class Category(models.Model): name = models.CharField(max_length=36) description = models.CharField(max_length=200) parent = models.ForeignKey('self', null=True, blank=True) class Admin: # Admin options go here

Re: recursive relationship foreignkey

2007-08-19 Thread olivier
Hi, On 19 août, 21:51, Francis Lavoie <[EMAIL PROTECTED]> wrote: > I'm trying to implement a recursive relationship with a foreignkey, but I > failed to make it work. > If I dont use blank=True, the admin interface doesn't let me add the > category, otherwise I received the error. You need als