Nope, you'll need to set a variable in your view. You can also try creating your own filter such that {% if friend|is_in_group %} would work (it's pretty easy to do, just check out the docs for custom template filters)
On Tue, Jun 16, 2009 at 2:40 PM, CrabbyPete <pete.do...@gmail.com> wrote: > > Is there a way do something like this with the template system > {% if friend in group.members.all %} or simply {% friend in > group.members.all %} > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---