#27: Added default sort for assignments and participants.
This commit is contained in:
parent
fa5918e951
commit
34f76c8c28
@ -36,7 +36,7 @@ def get_overview(request):
|
|||||||
if sort in ['name','status']:
|
if sort in ['name','status']:
|
||||||
query = query.order_by(sort)
|
query = query.order_by(sort)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
query = query.order_by('name')
|
||||||
if 'reverse' in request.GET:
|
if 'reverse' in request.GET:
|
||||||
query = query.reverse()
|
query = query.reverse()
|
||||||
|
|
||||||
|
@ -79,6 +79,8 @@ def get_overview(request):
|
|||||||
query = query.order_by(sortfilter['sort'][0])
|
query = query.order_by(sortfilter['sort'][0])
|
||||||
elif sortfilter['sort'][0] in ['group', 'type', 'committee']:
|
elif sortfilter['sort'][0] in ['group', 'type', 'committee']:
|
||||||
query = query.order_by('profile__%s' % sortfilter['sort'][0])
|
query = query.order_by('profile__%s' % sortfilter['sort'][0])
|
||||||
|
else:
|
||||||
|
query = query.order_by('first_name')
|
||||||
if 'reverse' in sortfilter:
|
if 'reverse' in sortfilter:
|
||||||
query = query.reverse()
|
query = query.reverse()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user