diff --git a/pandora/item/views.py b/pandora/item/views.py index 8e8557b2..9cfcb567 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -320,6 +320,8 @@ def autocomplete(request): key = settings.CONFIG['keys'][data['key']] order_by = key.get('autocompleteSort', False) if order_by: + for o in order_by: + if o['operator'] != '-': o['operator'] = '' order_by = ','.join(['%(operator)ssort__%(key)s' % o for o in order_by]) else: order_by = '-items'