additionalSort -> user.ui.listSort
This commit is contained in:
parent
b50bf7a630
commit
545710528e
1 changed files with 2 additions and 1 deletions
|
@ -37,8 +37,9 @@ from ox.django.api import actions
|
||||||
def _order_query(qs, sort, prefix='sort__'):
|
def _order_query(qs, sort, prefix='sort__'):
|
||||||
order_by = []
|
order_by = []
|
||||||
if len(sort) == 1:
|
if len(sort) == 1:
|
||||||
|
additional_sort = settings.CONFIG['user']['ui']['listSort']
|
||||||
key = utils.get_by_id(settings.CONFIG['itemKeys'], sort[0]['key'])
|
key = utils.get_by_id(settings.CONFIG['itemKeys'], sort[0]['key'])
|
||||||
for s in key.get('additionalSort', settings.CONFIG.get('additionalSort', [])):
|
for s in key.get('additionalSort', additional_sort):
|
||||||
sort.append(s)
|
sort.append(s)
|
||||||
for e in sort:
|
for e in sort:
|
||||||
operator = e['operator']
|
operator = e['operator']
|
||||||
|
|
Loading…
Reference in a new issue