From ab75b70c5b3515e1892d2aac88dc33ab2876a3bf Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 22 Jul 2013 13:16:50 +0000 Subject: [PATCH] backend: autocompleteSortKey -> autocompleteSort --- pandora/item/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 3900efd5d..8e8557b2e 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -318,9 +318,9 @@ def autocomplete(request): op = data.get('operator', '=') key = settings.CONFIG['keys'][data['key']] - order_by = key.get('autocompleteSortKey', False) + order_by = key.get('autocompleteSort', False) if order_by: - order_by = '-sort__%s' % order_by + order_by = ','.join(['%(operator)ssort__%(key)s' % o for o in order_by]) else: order_by = '-items' sort_type = key.get('sortType', key.get('type', 'string'))