From 0752c6b24f163cdfd763609e620dff2c31661294 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sun, 19 Jul 2015 10:33:54 +0200 Subject: [PATCH] Update changelog for #1070 --- docs/changelog.rst | 1 + mongoengine/document.py | 2 ++ 2 files changed, 3 insertions(+) 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)