Thanks,
I didn't know the {% ifchanged %} tag.
Martin
On Mon, 31 Jan 2011 22:58:55 +0100, Michael <[email protected]> wrote:
The easiest way would be to get a list of all closed work items, ordered
by user:
context['work'] = Work.objects.filter(whatever).order_by('user')
{% for work_item in work %}
{% ifchanged %}Display {{work_item.user}}{% endifchanged %}
Display {{ work_item }}
{% endfor %}
--
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.