forked from 0x2620/pandora
fix imports
This commit is contained in:
parent
520650d53b
commit
f1a71f23cf
1 changed files with 2 additions and 1 deletions
|
@ -50,9 +50,10 @@ def sortName(request):
|
||||||
names = data.get('names', [])
|
names = data.get('names', [])
|
||||||
if 'name' in data:
|
if 'name' in data:
|
||||||
names.append(data['name'])
|
names.append(data['name'])
|
||||||
|
response = json_response()
|
||||||
response['data'] = {}
|
response['data'] = {}
|
||||||
for name in names:
|
for name in names:
|
||||||
response['data'][name] = get_name_sort(name)
|
response['data'][name] = models.get_name_sort(name)
|
||||||
return render_to_json_response(response)
|
return render_to_json_response(response)
|
||||||
actions.register(sortName, cache=False)
|
actions.register(sortName, cache=False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue