This might be what you're looking for. One caveat, tho, the queryset should be .ordered_by('user')
{% regroup object_list by user as user_list %} {% for user in userlist_list %} <tr> <td>{{ user.user.id <http://user.id> }} {{user.list|length}}</td> <td> {% for asset in user.list %} {{ asset.serial }} {% endfor %} </td> </tr> {% endfor %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3e573ccd-622f-4181-aa2c-6c8a353ec26e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.