I tried following Code with the help of the django.contrib.auth.User and django.contrib.auth.Group
for g in request.user.groups:
l.append(g.name)
But that failed and I received following Error:
TypeError at /
'ManyRelatedManager' object is not iterable
Request Method: GET
Request URL: http://localhost:8000/
Exception Type: TypeError
Exception Value:
'ManyRelatedManager' object is not iterable
Exception Location: C:\p4\projects\...\users.py in permission, line 55
Thanks for any help!