I didn't know the {% ifchanged %} tag.
Martin
On Mon, 31 Jan 2011 22:58:55 +0100, Michael <mhall119@gmail.com> 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment