serialize JsObject
parent
29736e5188
commit
c3b5cb0e48
|
@ -44,6 +44,8 @@ def encode(o):
|
||||||
return str(o)
|
return str(o)
|
||||||
elif isinstance(o, dict):
|
elif isinstance(o, dict):
|
||||||
return dict2extjs(o)
|
return dict2extjs(o)
|
||||||
|
elif isinstance(o, JsObject):
|
||||||
|
return o._id
|
||||||
else:
|
else:
|
||||||
return o
|
return o
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue