Re: referencing the slug of parent ('self')

2008-10-21 Thread coderb
thanks Daniel. On Oct 21, 2:09 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Oct 21, 1:13 pm, coderb <[EMAIL PROTECTED]> wrote: > > > def category(request, myslug): > >     category_list = get_list_or_404(Category, parent=myslug) > > get_list_or_404(Category, parent__slug=myslug) > -- > DR.

Re: referencing the slug of parent ('self')

2008-10-21 Thread Daniel Roseman
On Oct 21, 1:13 pm, coderb <[EMAIL PROTECTED]> wrote: > def category(request, myslug): >     category_list = get_list_or_404(Category, parent=myslug) get_list_or_404(Category, parent__slug=myslug) -- DR. --~--~-~--~~~---~--~~ You received this message because you

referencing the slug of parent ('self')

2008-10-21 Thread coderb
hi, I know this is probably easy, but ... I have a category model: class Category(models.Model): name = models.CharField(max_length=100, unique=True) slug = models.SlugField(max_length=100, unique=True) parent=