fixed issue 1357, date/datetime serialization in as_dict, thanks Alan

This commit is contained in:
mdipierro
2013-03-06 12:31:39 -06:00
parent 5e93804525
commit 17890027a6
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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
+4
View File
@@ -9535,6 +9535,10 @@ class Query(object):
newd[k] = loop(v.__dict__)
elif isinstance(v, SERIALIZABLE_TYPES):
newd[k] = v
elif isinstance(v, (datetime.date,
datetime.time,
datetime.datetime)):
newd[k] = unicode(v)
elif k == "op":
if callable(v):
newd[k] = v.__name__