fix issue 1777:MongoDB: upload representation error, thanks Francisco Betancourt

This commit is contained in:
mdipierro
2013-11-16 03:16:57 -06:00
parent 07f0cdadcd
commit ff7ef47cc7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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
+2
View File
@@ -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):