From f060601d4080929ce55f37e6d09b64a34389bdac Mon Sep 17 00:00:00 2001 From: j Date: Fri, 19 Feb 2016 19:55:59 +0000 Subject: [PATCH] django 1.9 returns parsed value not raw data --- pandora/item/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 4d9ed4777..7acd6fdf3 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -240,7 +240,8 @@ def find(request, data): def only_p(m): r = {} if m: - m = json.loads(m, object_hook=ox.django.fields.from_json) + if not isinstance(m, dict): + m = json.loads(m, object_hook=ox.django.fields.from_json) for p in _p: r[p] = m.get(p) if 'clip_qs' in query: