Re: Getting list of user groups

2014-07-24 Thread Russell Keith-Magee
Hi Kyle, Apologies for the typo on my part that led you astray. Regarding the approach you describe -- you may want to look into Django's Forms library. That library is designed to specifically handle the kind of problem you describe (a pull-down select box filled with all the options populated f

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

Re: Getting list of user groups

2014-07-23 Thread Russell Keith-Magee
On Thu, Jul 24, 2014 at 4:39 AM, Kyle Adams wrote: > 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? > Hi Kyle, It's bit difficult to answer your question, bec

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