Skip to content
Snippets Groups Projects
Commit 58f3e758 authored by Ben Adida's avatar Ben Adida
Browse files

updated booth to escape out some variables, made sure election JSON is...

updated booth to escape out some variables, made sure election JSON is returned with right mime type
parent ff84db56
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ def render_template_raw(request, template_name, vars={}): ...@@ -74,7 +74,7 @@ def render_template_raw(request, template_name, vars={}):
def render_json(json_txt): def render_json(json_txt):
return HttpResponse(json_txt) return HttpResponse(json_txt, "application/json")
# decorator # decorator
def json(func): def json(func):
......
Subproject commit 81522f751f0eb3412ed3b3d1bad871ed4715554e Subproject commit 11a1a2fc0c4db87cfd1fa3cf566c0fbffd63cb7b
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment