I'm trying to figure out how I can use more than one model with a call
to object_list generic view.
currently I have this..
objectlist_dict = {'queryset' : Report.reports.all(),
'extra_context' : {'category_list' :
Category.objects.all() },
}
urlpatterns = patterns('',
(r'^$', object_list,
objectlist_dict ) ,....
my template tries this..
<h1> All Categories </h1>
<ul>
{% for cat in category_list %}
<li>
{{ cat.name }}
</li>
{% endfor %}
but the category's never get shown.
Thoughts?
Thanks,
John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---