fix imports

This commit is contained in:
j 2012-10-15 16:02:59 +02:00
parent 520650d53b
commit f1a71f23cf

View file

@ -50,9 +50,10 @@ def sortName(request):
names = data.get('names', [])
if 'name' in data:
names.append(data['name'])
response = json_response()
response['data'] = {}
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)
actions.register(sortName, cache=False)