I have two tables, one is entries and the other is comments.
In the template I would like display how many comments for each entry
and some other entry data.
So far I have...
view:
entries_list = entries.objects.filter( ...)
template:
{% for p in object_list %}
<tr>
<td>
{{ p.name }}
</td>
<td>
...
</td>
</tr>
{% endfor %}
How is this done? Should I use select_related in the view?
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---