fix autocomplete
This commit is contained in:
parent
c686a6ebe9
commit
cd46c456af
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ def autocomplete(request):
|
|||
order_by = '-sort__%s' % order_by
|
||||
else:
|
||||
order_by = '-items'
|
||||
sort_type = key.get('sort', key.get('type', 'string'))
|
||||
sort_type = key.get('sortType', key.get('type', 'string'))
|
||||
if sort_type == 'title':
|
||||
qs = parse_query({'query': data.get('query', {})}, request.user)['qs']
|
||||
if data['value']:
|
||||
|
|
Loading…
Reference in a new issue