We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ddf8b3 commit ebdd2d7Copy full SHA for ebdd2d7
docs/changelog.rst
@@ -4,6 +4,7 @@ Changelog
4
5
Changes in 0.8.0
6
================
7
+- Fixed querying ReferenceField custom_id (#317)
8
- Fixed pickle issues with collections (#316)
9
- Added `get_next_value` preview for SequenceFields (#319)
10
- Added no_sub_classes context manager and queryset helper (#312)
mongoengine/fields.py
@@ -853,8 +853,6 @@ def to_mongo(self, document):
853
if not self.dbref:
854
return document.id
855
return document
856
- elif not self.dbref and isinstance(document, basestring):
857
- return ObjectId(document)
858
859
id_field_name = self.document_type._meta['id_field']
860
id_field = self.document_type._fields[id_field_name]
0 commit comments