dont use CONFIG['keys']
This commit is contained in:
parent
d0a1b9d4c6
commit
104292cba8
2 changed files with 2 additions and 2 deletions
|
|
@ -317,7 +317,7 @@ def autocomplete(request):
|
|||
data['range'] = [0, 10]
|
||||
op = data.get('operator', '=')
|
||||
|
||||
key = settings.CONFIG['keys'][data['key']]
|
||||
key = utils.get_by_id(settings.CONFIG['itemKeys'], data['key'])
|
||||
order_by = key.get('autocompleteSort', False)
|
||||
if order_by:
|
||||
for o in order_by:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue