Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
[fix bug 1142479] Order user list by first_name in availability setti…
Browse files Browse the repository at this point in the history
…ngs.
  • Loading branch information
akatsoulas committed Mar 12, 2015
1 parent ef442f5 commit 1c7258b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remo/profiles/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def __init__(self, *args, **kwargs):
super(UserStatusForm, self).__init__(*args, **kwargs)
query = (User.objects.filter(
groups__name='Rep', userprofile__registration_complete=True)
.exclude(id=self.instance.user.id))
.exclude(id=self.instance.user.id).order_by('first_name'))
self.fields['replacement_rep'].queryset = query

if self.instance.id:
Expand Down

0 comments on commit 1c7258b

Please sign in to comment.