From 1f220b4eaf8bc2e834a3c7e1fbfa4909d237e7cf Mon Sep 17 00:00:00 2001 From: Bastien Gerard Date: Tue, 23 Feb 2021 21:51:41 +0100 Subject: [PATCH] update changelog and fix minor typo in docstring --- docs/changelog.rst | 1 + mongoengine/fields.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index b904a2b8..5898eb1f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,7 @@ Changelog Development =========== - (Fill this out as you fix issues and develop your features). +- Bugfix: manually setting SequenceField in DynamicDocument doesn't increment the counter #2471 Changes in 0.22.1 ================= diff --git a/mongoengine/fields.py b/mongoengine/fields.py index c20333a8..10bba54b 100644 --- a/mongoengine/fields.py +++ b/mongoengine/fields.py @@ -1162,7 +1162,7 @@ class ReferenceField(BaseField): :param document_type: The type of Document that will be referenced :param dbref: Store the reference as :class:`~pymongo.dbref.DBRef` - or as the :class:`~pymongo.objectid.ObjectId`.id . + or as the :class:`~pymongo.objectid.ObjectId`. :param reverse_delete_rule: Determines what to do when the referring object is deleted :param kwargs: Keyword arguments passed into the parent :class:`~mongoengine.BaseField`