Improve error message from InvalidDocumentError whenever an embedded document has a bad shape (e.g due to migration)

This commit is contained in:
Bastien Gérard
2019-10-28 22:05:13 +01:00
parent 178851589d
commit 8bf5370b6c
3 changed files with 31 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ Development
- If you catch/use ``MongoEngineConnectionError`` in your code, you'll have to rename it.
- BREAKING CHANGE: Positional arguments when instantiating a document are no longer supported. #2103
- From now on keyword arguments (e.g. ``Doc(field_name=value)``) are required.
- Improve error message related to InvalidDocumentError #2180
- Fix updating/modifying/deleting/reloading a document that's sharded by a field with ``db_field`` specified. #2125
- ``ListField`` now accepts an optional ``max_length`` parameter. #2110
- The codebase is now formatted using ``black``. #2109