fix autocomplete operator

This commit is contained in:
j 2013-08-16 12:19:29 +02:00
parent 6eaf5a84ee
commit d5da33feb7

View file

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