fixed 1801:error in DAL using MongoDB with 'list:reference <table>', thanks Alan

This commit is contained in:
mdipierro
2013-12-07 10:18:33 -06:00
parent 91dc4f1d03
commit 3599863304
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.8.2-stable+timestamp.2013.12.07.10.15.16
Version 2.8.2-stable+timestamp.2013.12.07.10.17.35
-3
View File
@@ -5647,9 +5647,6 @@ class MongoDBAdapter(NoSQLAdapter):
value = obj
else:
value = NoSQLAdapter.represent(self, obj, fieldtype)
if isinstance(obj, (list, tuple)) and \
(not fieldtype == "json" or fieldtype.startswith('list:')):
return value
# reference types must be convert to ObjectID
if fieldtype =='date':
if value == None: