#319 sort participants by there last_name by default
This commit is contained in:
parent
e1a2f18f74
commit
8854f7f9ba
@ -94,7 +94,7 @@ def get_overview(request):
|
|||||||
elif sortfilter['sort'][0] in ['group', 'type', 'committee', 'comment']:
|
elif sortfilter['sort'][0] in ['group', 'type', 'committee', 'comment']:
|
||||||
query = query.order_by('profile__%s' % sortfilter['sort'][0])
|
query = query.order_by('profile__%s' % sortfilter['sort'][0])
|
||||||
else:
|
else:
|
||||||
query = query.order_by('first_name')
|
query = query.order_by('last_name')
|
||||||
if 'reverse' in sortfilter:
|
if 'reverse' in sortfilter:
|
||||||
query = query.reverse()
|
query = query.reverse()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user