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

Merge pull request #1761 from kaedroho/fix-search-suggestions

Fix search suggestions
This commit is contained in:
Karl Hobley 2015-10-01 17:23:02 +01:00
commit e955f7da4c

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