forked from 0x2620/pandora
django 1.9 returns parsed value not raw data
This commit is contained in:
parent
e9bcd19161
commit
f060601d40
1 changed files with 2 additions and 1 deletions
|
@ -240,7 +240,8 @@ def find(request, data):
|
||||||
def only_p(m):
|
def only_p(m):
|
||||||
r = {}
|
r = {}
|
||||||
if m:
|
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:
|
for p in _p:
|
||||||
r[p] = m.get(p)
|
r[p] = m.get(p)
|
||||||
if 'clip_qs' in query:
|
if 'clip_qs' in query:
|
||||||
|
|
Loading…
Reference in a new issue