diff --git a/docs/changelog.rst b/docs/changelog.rst index c512eca0..4334ae5a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -7,6 +7,7 @@ Changes in 0.10.1 - DEV - Fix infinite recursion with CASCADE delete rules under specific conditions. #1046 - Fix CachedReferenceField bug when loading cached docs as DBRef but failing to save them. #1047 - Fix ignored chained options #842 +- Document save's save_condition error raises `SaveConditionError` exception #1070 Changes in 0.10.0 ================= diff --git a/mongoengine/document.py b/mongoengine/document.py index 70abadcc..d68d6d65 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -295,6 +295,8 @@ class Document(BaseDocument): if the condition is satisfied in the current db record. .. versionchanged:: 0.10 :class:`OperationError` exception raised if save_condition fails. + .. versionchanged:: 0.10.1 + :class: save_condition failure now raises a `SaveConditionError` """ signals.pre_save.send(self.__class__, document=self)