Fix ReferenceField dbref = False
This commit is contained in:
parent
7cd38c56c6
commit
ab4d4e6230
6 changed files with 13 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue