experiment with mongodb and belongs
This commit is contained in:
1 parent
97739e9e8a
commit
f8f91c6a6a
2 files changed
+4
-1
No files matched your search
@@ -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