forked from extern/django-helpdesk
* Allow priority selection on submission
* Display coloured background on new Priority column in lists * Allow sorting by priority in ticket list
This commit is contained in:
2
views.py
2
views.py
@@ -198,7 +198,7 @@ def ticket_list(request):
|
||||
|
||||
### SORTING
|
||||
sort = request.GET.get('sort', None)
|
||||
if sort not in ('status', 'assigned_to', 'created', 'title', 'queue'):
|
||||
if sort not in ('status', 'assigned_to', 'created', 'title', 'queue', 'priority'):
|
||||
sort = 'created'
|
||||
tickets = tickets.order_by(sort)
|
||||
context = dict(context, sort=sort)
|
||||
|
Reference in New Issue
Block a user