Commit 0df8ce4d authored by Maël Kervella's avatar Maël Kervella

Ne trie le queryset que si c'est lui qui est concerné

parent 3ce390f7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment