X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dbb1ae2cf25105f7a3831961b08386a1326baef8..0bd51a33b9ffe994541ccd02fc850d47ac82ccec:/apps/ajaxable/utils.py?ds=sidebyside diff --git a/apps/ajaxable/utils.py b/apps/ajaxable/utils.py index 4a801206b..456c2b446 100755 --- a/apps/ajaxable/utils.py +++ b/apps/ajaxable/utils.py @@ -31,7 +31,7 @@ class JSONResponse(HttpResponse): data = json.dumps(data) if callback: data = callback + "(" + data + ");" - super(JSONResponse, self).__init__(data, mimetype="application/json", **kwargs) + super(JSONResponse, self).__init__(data, content_type="application/json", **kwargs) def method_decorator(function_decorator):