no exta sort for groups

This commit is contained in:
j 2011-01-02 15:38:17 +05:30
parent 67ac7fdf56
commit b186fa428f

View file

@ -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'})