forked from 0x2620/pandora
no exta sort for groups
This commit is contained in:
parent
67ac7fdf56
commit
b186fa428f
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ def _order_query(qs, sort, prefix='sort__'):
|
|||
elif sort[0]['key'] == 'year':
|
||||
sort.append({'operator': '+', 'key': 'director'})
|
||||
sort.append({'operator': '+', 'key': 'title'})
|
||||
else:
|
||||
elif not sort[0]['key'] in ('value', 'value_sort'):
|
||||
sort.append({'operator': '+', 'key': 'director'})
|
||||
sort.append({'operator': '-', 'key': 'year'})
|
||||
sort.append({'operator': '+', 'key': 'title'})
|
||||
|
|
Loading…
Reference in a new issue