I think you're looking for something like this: http://www.djangosnippets.org/snippets/282/
On Oct 9, 3:22 am, äL <[EMAIL PROTECTED]> wrote: > Inhttp://code.djangoproject.com/wiki/CookBookRequiredGroupLoginI > found how > to show a template only if the user is in a specific group (admin). > > Now I would like to do the same in a template. How can I hide a link, > for example, > if the user is not in the admin group? I'm looking for something like > this: > > {% ifequal user.group "admin" %} > <a href="detail">Show detail</a> > {% else %} > > {% endifequal %} > > Is there a django-command to achive this aim? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---