fixed issue 1357, date/datetime serialization in as_dict, thanks Alan
This commit is contained in:
1 parent
5e93804525
commit
17890027a6
2 files changed
+5
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.4.2-stable+timestamp.2013.03.06.12.28.09
|
Version 2.4.2-stable+timestamp.2013.03.06.12.31.02
|
||||||
@@ -9535,6 +9535,10 @@ class Query(object):
|
|||||||
newd[k] = loop(v.__dict__)
|
newd[k] = loop(v.__dict__)
|
||||||
elif isinstance(v, SERIALIZABLE_TYPES):
|
elif isinstance(v, SERIALIZABLE_TYPES):
|
||||||
newd[k] = v
|
newd[k] = v
|
||||||
|
elif isinstance(v, (datetime.date,
|
||||||
|
datetime.time,
|
||||||
|
datetime.datetime)):
|
||||||
|
newd[k] = unicode(v)
|
||||||
elif k == "op":
|
elif k == "op":
|
||||||
if callable(v):
|
if callable(v):
|
||||||
newd[k] = v.__name__
|
newd[k] = v.__name__
|
||||||
|
|||||||
Reference in new issue
Block a user