Skip to content

Commit

Permalink
Merge pull request troeger#62 from troeger/thehappyhippo-patch-2
Browse files Browse the repository at this point in the history
Don't show deactivated users in author choice.
  • Loading branch information
troeger committed Oct 21, 2015
2 parents 064a122 + 2f99b22 commit a88b681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/opensubmit/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, current_user, ass, *args, **kwargs):
for author in submission.authors.all():
havingSubmissions.append(author.pk)
# The submitter should still be in the list (see #13), but the course owner should not (see #56)
self.fields['authors'].queryset = User.objects.exclude(pk__in=havingSubmissions).exclude(pk=ass.course.owner.pk)
self.fields['authors'].queryset = User.objects.exclude(pk__in=havingSubmissions).exclude(pk=ass.course.owner.pk).exclude(is_active=False)

class SubmissionWithoutGroups(forms.ModelForm):

Expand Down

0 comments on commit a88b681

Please sign in to comment.