experiment with mongodb and belongs
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.7.4-stable+timestamp.2013.11.17.09.31.13
|
||||
Version 2.7.4-stable+timestamp.2013.11.17.12.02.33
|
||||
|
||||
@@ -5578,6 +5578,9 @@ 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