Fixed thumbnail field returning always "id" with json formatter
Version development 0.h
This commit is contained in:
parent
d46beddc93
commit
148f6f3a2b
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class Encoder(json.JSONEncoder):
|
|||
dct = obj.to_dict()
|
||||
except AttributeError:
|
||||
return str(obj)
|
||||
for z in dct:
|
||||
for z in dct.itervalues():
|
||||
return z
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue