fix editor without ajax

This commit is contained in:
Laura Klünder 2018-09-18 17:07:58 +02:00
parent c5fc590c2a
commit f11c8c5f22

View file

@ -35,7 +35,7 @@ def sidebar_view(func=None, select_related=None):
return response return response
if isinstance(response, HttpResponseRedirect): if isinstance(response, HttpResponseRedirect):
return response return response
response = render(request, 'editor/map.html', {'content': response.content}) response = render(request, 'editor/map.html', {'content': response.content.decode()})
response['Cache-Control'] = 'no-cache' response['Cache-Control'] = 'no-cache'
patch_vary_headers(response, ('X-Requested-With', )) patch_vary_headers(response, ('X-Requested-With', ))
return response return response