fix issue 1777:MongoDB: upload representation error, thanks Francisco Betancourt
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.7.4-stable+timestamp.2013.11.14.13.28.53
|
||||
Version 2.7.4-stable+timestamp.2013.11.16.03.15.58
|
||||
|
||||
@@ -5592,6 +5592,8 @@ class MongoDBAdapter(NoSQLAdapter):
|
||||
# string or integer
|
||||
return datetime.datetime.combine(d, value)
|
||||
elif fieldtype == "blob":
|
||||
if value== None:
|
||||
return value
|
||||
from bson import Binary
|
||||
if not isinstance(value, Binary):
|
||||
if not isinstance(value, basestring):
|
||||
|
||||
Reference in New Issue
Block a user