serialize JsObject

master
inpos 2018-08-09 15:59:57 +03:00
parent 29736e5188
commit c3b5cb0e48
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ def encode(o):
return str(o)
elif isinstance(o, dict):
return dict2extjs(o)
elif isinstance(o, JsObject):
return o._id
else:
return o