Changed the sort order of nominees on the private index page to be according to name (instead of email address).

- Legacy-Id: 15479
This commit is contained in:
Henrik Levkowetz 2018-09-21 19:47:40 +00:00
parent 9067a2da7c
commit 120d78bbbf

View file

@ -132,7 +132,7 @@ def private_key(request, year):
@role_required("Nomcom")
def private_index(request, year):
nomcom = get_nomcom_by_year(year)
all_nominee_positions = NomineePosition.objects.get_by_nomcom(nomcom).not_duplicated()
all_nominee_positions = NomineePosition.objects.get_by_nomcom(nomcom).not_duplicated().order_by('nominee__person__name')
is_chair = nomcom.group.has_role(request.user, "chair")
if is_chair and request.method == 'POST':
if nomcom.group.state_id != 'active':