use application/json
This commit is contained in:
parent
b0463ae6d7
commit
377386df46
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ def _to_json(python_object):
|
||||||
return python_object.strftime('%Y-%m-%dT%H:%M:%SZ')
|
return python_object.strftime('%Y-%m-%dT%H:%M:%SZ')
|
||||||
raise TypeError('%s %s is not JSON serializable' % (repr(python_object), type(python_object)))
|
raise TypeError('%s %s is not JSON serializable' % (repr(python_object), type(python_object)))
|
||||||
|
|
||||||
def render_to_json_response(dictionary, content_type="text/json", status=200):
|
def render_to_json_response(dictionary, content_type="application/json", status=200):
|
||||||
indent = None
|
indent = None
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
content_type = "text/javascript"
|
content_type = "text/javascript"
|
||||||
|
|
Loading…
Reference in a new issue