forked from 0x2620/pandora
make sort director weird, fixes: #129
This commit is contained in:
parent
4b78d1184d
commit
0ad5406f5e
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ def _order_query(qs, sort, prefix='sort__'):
|
||||||
sort.append({'operator': '+', 'key': 'director'})
|
sort.append({'operator': '+', 'key': 'director'})
|
||||||
elif sort[0]['key'] == 'director':
|
elif sort[0]['key'] == 'director':
|
||||||
sort.append({'operator': '-', 'key': 'year'})
|
sort.append({'operator': '-', 'key': 'year'})
|
||||||
sort.append({'operator': '+', 'key': 'title'})
|
sort.append({'operator': '-', 'key': 'title'})
|
||||||
elif sort[0]['key'] == 'year':
|
elif sort[0]['key'] == 'year':
|
||||||
sort.append({'operator': '+', 'key': 'director'})
|
sort.append({'operator': '+', 'key': 'director'})
|
||||||
sort.append({'operator': '+', 'key': 'title'})
|
sort.append({'operator': '+', 'key': 'title'})
|
||||||
|
|
Loading…
Reference in a new issue