Wednesday, July 23, 2014

Getting list of user groups

I'm trying to get a list of the user groups available in a system. I have groups set up, but how do I, on some request, get a list of the names of each of the groups in my system?

For some context, I'm working on an analytics dashboard, and part of what I want to be able to do is look at the data for certain groups, perhaps staff and non-staff. To do this, I want to be able to ask Django for the list of groups first, so the user can choose a group from there, and then later will get a list of all users in that group, so I can look only at their data.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c9de4101-1283-48c8-957a-0d1e8c4c8a12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment