From 545710528e0b5110ee3253da97c1416c2e9eb9bb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 9 Feb 2014 11:29:00 +0000 Subject: [PATCH] additionalSort -> user.ui.listSort --- pandora/item/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 63a384a7..b0927d90 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -37,8 +37,9 @@ from ox.django.api import actions def _order_query(qs, sort, prefix='sort__'): order_by = [] if len(sort) == 1: + additional_sort = settings.CONFIG['user']['ui']['listSort'] 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) for e in sort: operator = e['operator']