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
kg
http://lawgon.livejournal.com
http://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