# return query
+@cache.never_cache
def hint(request):
prefix = request.GET.get('term', '')
if len(prefix) < 2:
- return JsonResponse([])
+ return JsonResponse([], safe=False)
prefix = remove_query_syntax_chars(prefix)
return HttpResponse("%s(%s);" % (callback, json.dumps(data)),
content_type="application/json; charset=utf-8")
else:
- return JsonResponse(data)
+ return JsonResponse(data, safe=False)
+@cache.never_cache
def main(request):
results = {}