experiment with mongodb and belongs

This commit is contained in:
mdipierro
2013-11-17 12:03:20 -06:00
parent 97739e9e8a
commit f8f91c6a6a
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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
+3
View File
@@ -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: