On 2010-02-22, at 2:56 PM, Joakim Hove wrote: > Any tip on how to write the "user_is_member_of_admin_group()" > function?
You can access the groups via the ManyRelatedManager, which exposes a queryset: user.groups.filter(...) eg: if user.groups.filter(name="Admin") -- Andy McKay, @clearwind http://clearwind.ca/djangoski -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.