mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-30 00:22:25 +00:00
Ne trie le queryset que si c'est lui qui est concerné
This commit is contained in:
parent
742d905e83
commit
ea7292c023
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ class SortTable:
|
||||||
if not fields:
|
if not fields:
|
||||||
fields = values.get('default', [])
|
fields = values.get('default', [])
|
||||||
request = request.order_by(*fields)
|
request = request.order_by(*fields)
|
||||||
if order == 'desc':
|
if values.get(col, None) and order == 'desc':
|
||||||
return request.reverse()
|
return request.reverse()
|
||||||
else:
|
else:
|
||||||
return request
|
return request
|
||||||
|
|
Loading…
Reference in a new issue