Just a matter of taste. I suppose filtering in the view would be the simplest way to achieve what I'm looking for.
For my own edification: is there a way to write an iffirst tag? I often wish for it. --Ned. Todd O'Bryan wrote: > On Dec 28, 2007 2:46 PM, Ned Batchelder <[EMAIL PROTECTED]> wrote: > >> I'm making a list of objects, and only including some of them in the output: >> >> {% for thing in mylist %} >> {% if thing.test %} >> {{thing}} >> {% endif %} >> {% endfor %} >> >> > > Is there a compelling reason not to do the filtering in the view > before you even hit the template? > > Todd > > > > > -- Ned Batchelder, http://nedbatchelder.com --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---