I'm generating a list of Users in a specific group, in this case,
"Artists", for a form:

artist_group = Group.objects.get(name="Artists")
artist =
forms.ModelChoiceField(queryset=User.objects.filter(groups=artist_group),
required=False)

I'd like to re-write this to avoid using a Group that could get
renamed, deleted, or change some other way in the future. I've created
a custom permission called "in_artist_pulldown" to use. Is there a way
to query Users that have the permission "in_artist_pulldown."  I can't
quite seem to figure out how to access that.

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to