Sorry, that's my fault. I was trying to simplify the naming a bit for
the post. 'work_category' should just be 'category'

On Mar 28, 11:44 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 29-Mar-08, at 9:43 AM, Brandon Taylor wrote:
>
>
>
> > def showCategories(request):
> >     categories = Category.objects.all().select_related()
> >     return render_to_response('showCategories.html',{'categories':
> > categories})
>
> > In my template, I have:
>
> > {% for category in categories %}
> >     <h2>{{ category.title }}</h2>
> >     <ul>
> >     {% for item in work_category.items %}
> >         <li>{{ item.name }}</li>
> >     {% endfor %}
> >     </ul>
> > {% endfor %}
>
> where does 'work_category' come from?
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/code/
--~--~---------~--~----~------------~-------~--~----~
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 email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to