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: ...@@ -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
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