Re: Acces to ForeignKey related objects

2006-07-19 Thread [EMAIL PROTECTED]
Ah great! Thanks for the quick response! --~--~-~--~~~---~--~~ 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

Re: Acces to ForeignKey related objects

2006-07-19 Thread Malcolm Tredinnick
On Wed, 2006-07-19 at 02:38 -0700, [EMAIL PROTECTED] wrote: > I have the following model: > > class Category(models.Model): > name = models.CharField(core=True, maxlength=200) > slug = models.SlugField(prepopulate_from=('name',)) > parent = models.ForeignKey('self', blank=True,

Acces to ForeignKey related objects

2006-07-19 Thread [EMAIL PROTECTED]
I have the following model: class Category(models.Model): name = models.CharField(core=True, maxlength=200) slug = models.SlugField(prepopulate_from=('name',)) parent = models.ForeignKey('self', blank=True, null=True, related_name='child') description = models.Text