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,6 +240,7 @@ def find(request, data):
|
||||||
def only_p(m):
|
def only_p(m):
|
||||||
r = {}
|
r = {}
|
||||||
if m:
|
if m:
|
||||||
|
if not isinstance(m, dict):
|
||||||
m = json.loads(m, object_hook=ox.django.fields.from_json)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue