mirror of
https://gitlab.federez.net/re2o/re2o
synced 2024-05-19 17:12:32 +00:00
Ne trie le queryset que si c'est lui qui est concerné
This commit is contained in:
parent
3ce390f733
commit
0df8ce4dc0
|
@ -248,7 +248,7 @@ class SortTable:
|
|||
if not fields:
|
||||
fields = values.get('default', [])
|
||||
request = request.order_by(*fields)
|
||||
if order == 'desc':
|
||||
if values.get(col, None) and order == 'desc':
|
||||
return request.reverse()
|
||||
else:
|
||||
return request
|
||||
|
|
Loading…
Reference in a new issue