debug needs custom json hooks too
This commit is contained in:
parent
d35a1c721c
commit
618ad7ed3f
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def render_to_json_response(dictionary, content_type="text/json", status=200):
|
||||||
content_type = "text/javascript"
|
content_type = "text/javascript"
|
||||||
indent = 2
|
indent = 2
|
||||||
if settings.JSON_DEBUG:
|
if settings.JSON_DEBUG:
|
||||||
print json.dumps(dictionary, indent=2)
|
print json.dumps(dictionary, indent=2, default=_to_json)
|
||||||
if 'status' in dictionary and 'code' in dictionary['status']:
|
if 'status' in dictionary and 'code' in dictionary['status']:
|
||||||
status = dictionary['status']['code']
|
status = dictionary['status']['code']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue