Fix ReferenceField dbref = False

This commit is contained in:
Ross Lawley
2012-09-18 21:37:45 +00:00
parent 7cd38c56c6
commit ab4d4e6230
6 changed files with 13 additions and 9 deletions

View File

@@ -792,7 +792,7 @@ class ReferenceField(BaseField):
collection = self.document_type._get_collection_name()
return DBRef(collection, id_)
return "%s" % id_
return id_
def to_python(self, value):
"""Convert a MongoDB-compatible type to a Python type.