Skip to content

Commit

Permalink
fix queryset for attending in h&p note
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrporter committed Aug 9, 2020
1 parent 70ea826 commit a42c4ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osler/workup/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ class Meta(object):
attending = ModelChoiceField(
required=False,
queryset=get_user_model().objects.filter(
groups__permissions__codename=can_sign_perm_codename)
groups__in=Group.objects.filter(
permissions__codename=can_sign_perm_codename)
).distinct()
)

other_volunteer = ModelMultipleChoiceField(
Expand Down

0 comments on commit a42c4ae

Please sign in to comment.