From 618ad7ed3f4ab9bb6cf3565ffc1712f6afadb554 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 25 Mar 2011 11:39:31 +0100 Subject: [PATCH] debug needs custom json hooks too --- ox/django/shortcuts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/django/shortcuts.py b/ox/django/shortcuts.py index bdb7902..0147476 100644 --- a/ox/django/shortcuts.py +++ b/ox/django/shortcuts.py @@ -28,7 +28,7 @@ def render_to_json_response(dictionary, content_type="text/json", status=200): content_type = "text/javascript" indent = 2 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']: status = dictionary['status']['code']