participants list case insensitive sorting

This commit is contained in:
Élie Bouttier 2017-08-12 01:03:22 +02:00
parent a7d7129f6f
commit d10d30b0cc
1 changed files with 3 additions and 1 deletions

View File

@ -259,7 +259,9 @@ def talk_decide(request, conference, talk_id, accept):
@staff_required
def participant_list(request, conference):
participants = Participant.objects.filter(site=conference.site)
participants = Participant.objects.filter(site=conference.site) \
.extra(select={'lower_name': 'lower(name)'}) \
.order_by('lower_name')
return render(request, 'cfp/staff/participant_list.html', {
'participant_list': participants,
})