diff --git a/docs/changelog.rst b/docs/changelog.rst index 026b9d46..e04c48fb 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -10,6 +10,7 @@ Changes in 0.11.0 ================= - BREAKING CHANGE: Renamed `ConnectionError` to `MongoEngineConnectionError` since the former is a built-in exception name in Python v3.x. #1428 - BREAKING CHANGE: Dropped Python 2.6 support. #1428 +- BREAKING CHANGE: `from mongoengine.base import ErrorClass` won't work anymore for any error from `mongoengine.errors` (e.g. `ValidationError`). Use `from mongoengine.errors import ErrorClass instead`. #1428 - Fixed absent rounding for DecimalField when `force_string` is set. #1103 Changes in 0.10.8 diff --git a/docs/upgrade.rst b/docs/upgrade.rst index 3ef8fa28..c0ae7205 100644 --- a/docs/upgrade.rst +++ b/docs/upgrade.rst @@ -5,7 +5,7 @@ Upgrading 0.11.0 ****** This release includes a major rehaul of MongoEngine's code quality and -introduces a couple breaking changes. It also touches many different parts of +introduces a few breaking changes. It also touches many different parts of the package and although all the changes have been tested and scrutinized, you're encouraged to thorougly test the upgrade. @@ -15,6 +15,12 @@ If you import or catch this exception, you'll need to rename it in your code. Second breaking change drops Python v2.6 support. If you run MongoEngine on that Python version, you'll need to upgrade it first. +Third breaking change drops an old backward compatibility measure where +`from mongoengine.base import ErrorClass` would work on top of +`from mongoengine.errors import ErrorClass` (where `ErrorClass` is e.g. +`ValidationError`). If you import any exceptions from `mongoengine.base`, +change it to `mongoengine.errors`. + 0.10.8 ****** This version fixed an issue where specifying a MongoDB URI host would override