0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Fix search suggestions

This commit is contained in:
Karl Hobley 2015-10-01 12:45:25 +01:00
parent 7de03ef8c4
commit 99289a2849

View File

@ -77,7 +77,7 @@ def search(
if hasattr(result_specific, attr)
))
return JsonResponse(search_results_json)
return JsonResponse(search_results_json, safe=False)
else:
return JsonResponse([], safe=False)
else: # Render a template