fixed 1801:error in DAL using MongoDB with 'list:reference <table>', thanks Alan
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user