Looks like users = permission.user_set.all() works, but only if the
permission is explicitly assigned to the user. Ideally, I'd like to
assign the permissions in Groups.
On Sep 25, 1:45 pm, bobbyc881 <[EMAIL PROTECTED]> wrote:
> That gives an error... "Error was: 'Permission' object has no
> attr
That gives an error... "Error was: 'Permission' object has no
attribute 'users'"
Seems like this should be easy...
On Sep 25, 11:32 am, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> bobbyc881 wrote:
> > I'm generating a list of Users in a specific group, in this case,
> > "Artists", for a form:
>
bobbyc881 wrote:
> 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 thi
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
4 matches
Mail list logo