On Mon, Oct 19, 2009 at 9:55 AM, The Danny Bos <danny...@gmail.com> wrote: > Will this display all CollectionTypes even if there is no record for a > user in CollectionUserPile?
no. in that case try this (untested): in the view: mytypes = ((t, t.collectionuserpile_set.filter(user=request.user)) for t in CollectionType.all()) in the template: {% for type,pile in mytypes %} {{type}} {% for item in pile %} {{item}} {% endfor %} {% endfor %} -- Javier --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---