Smartif is great, I don't get why it's not a standard part of django templates.
On Jun 17, 5:02 pm, Steve Howell <showel...@yahoo.com> wrote: > Another option is to install the snippet below, which supports "in": > > http://www.djangosnippets.org/snippets/1350/ > > On Jun 17, 1:53 pm, Ben Davis <bendavi...@gmail.com> wrote: > > > > > 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 %}- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---