mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-23 14:29:05 +01:00
Silly mistake: reversed condition in 'if' check
This commit is contained in:
parent
b6472507e4
commit
5eb8b6eeb7
@ -176,7 +176,7 @@ def apply_query(queryset, params):
|
||||
sorting = params.get('sorting', None)
|
||||
if not sorting:
|
||||
sortreverse = params.get('sortreverse', None)
|
||||
if not sortreverse:
|
||||
if sortreverse:
|
||||
sorting = "-%s" % sorting
|
||||
queryset = queryset.order_by(sorting)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user