Re: Getting list of user groups

2014-07-24 Thread Kyle Adams
After some more research, turns out it is "values_list" instead of "value_list" -- 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+unsubscr...@googleg

Re: Getting list of user groups

2014-07-24 Thread Kyle Adams
One issue I'm still having is actually getting the list of group names. I'm trying to use the line groups = Group.objects.value_list('name', flat=True) but I'm getting an error that reads 'GroupManager' object has no attribute 'value_list' Any idea about this? -- You received this message

Re: Getting list of user groups

2014-07-24 Thread Kyle Adams
Thanks for your help, Russ. I'm planning to expose the user to the names of the groups using a drop list on my site. They'll choose a group, then our site will get the list of users in that group from Django, and then send a query to our database to get the data for that group of users. -- You

Getting list of user groups

2014-07-23 Thread Kyle Adams
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 da