fixed issue 1612, thanks gi0baro
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.0-development+timestamp.2013.08.06.06.56.19
|
Version 2.6.0-development+timestamp.2013.08.06.08.57.19
|
||||||
|
|||||||
+3
-1
@@ -5349,7 +5349,9 @@ class MongoDBAdapter(NoSQLAdapter):
|
|||||||
return datetime.datetime.combine(d, value)
|
return datetime.datetime.combine(d, value)
|
||||||
elif fieldtype == "blob":
|
elif fieldtype == "blob":
|
||||||
from bson import Binary
|
from bson import Binary
|
||||||
return Binary(value)
|
if not isinstance(value, Binary):
|
||||||
|
return Binary(value)
|
||||||
|
return value
|
||||||
elif (isinstance(fieldtype, basestring) and
|
elif (isinstance(fieldtype, basestring) and
|
||||||
fieldtype.startswith('list:')):
|
fieldtype.startswith('list:')):
|
||||||
if fieldtype.startswith('list:reference'):
|
if fieldtype.startswith('list:reference'):
|
||||||
|
|||||||
Reference in New Issue
Block a user