custom field validator is now expected to raise a ValidationError (drop support for returning True/False)

This commit is contained in:
Bastien Gérard
2019-05-11 22:34:25 +02:00
parent da3773bfe8
commit 7d0687ec73
4 changed files with 64 additions and 7 deletions

View File

@@ -5,6 +5,8 @@ Changelog
Development
===========
- Add support for MongoDB 3.6 and Python3.7 in travis
- BREAKING CHANGE: Changed the custom field validator (i.e `validation` parameter of Field) so that it now requires:
the callable to raise a ValidationError (i.o return True/False).
- Fix querying on List(EmbeddedDocument) subclasses fields #1961 #1492
- Fix querying on (Generic)EmbeddedDocument subclasses fields #475
- expose `mongoengine.connection.disconnect` and `mongoengine.connection.disconnect_all`