@@ -6,8 +6,9 @@ Changelog
66Development
77===========
88- (Fill this out as you fix issues and develop your features).
9- - Documentation improvements:
10- - Documented how `pymongo.monitoring ` can be used to log all queries issued by MongoEngine to the driver.
9+
10+ Changes in 0.19.0
11+ =================
1112- BREAKING CHANGE: ``class_check `` and ``read_preference `` keyword arguments are no longer available when filtering a ``QuerySet ``. #2112
1213 - Instead of ``Doc.objects(foo=bar, read_preference=...) `` use ``Doc.objects(foo=bar).read_preference(...) ``.
1314 - Instead of ``Doc.objects(foo=bar, class_check=False) `` use ``Doc.objects(foo=bar).clear_cls_query(...) ``.
@@ -21,14 +22,19 @@ Development
2122- DEPRECATION: ``Q.empty `` & ``QNode.empty `` are marked as deprecated and will be removed in a next version of MongoEngine. #2210
2223 - Added ability to check if Q or QNode are empty by parsing them to bool.
2324 - Instead of ``Q(name="John").empty `` use ``not Q(name="John") ``.
24- - Improve error message related to InvalidDocumentError #2180
2525- Fix updating/modifying/deleting/reloading a document that's sharded by a field with ``db_field `` specified. #2125
26+ - Only set no_cursor_timeout when requested (fixes an incompatibility with MongoDB 4.2) #2148
2627- ``ListField `` now accepts an optional ``max_length `` parameter. #2110
27- - Switch from nosetest to pytest as test runner #2114
28- - The codebase is now formatted using ``black ``. #2109
29- - In bulk write insert, the detailed error message would raise in exception.
28+ - Improve error message related to InvalidDocumentError #2180
29+ - Added BulkWriteError to replace NotUniqueError which was misleading in bulk write insert #2152
3030- Added ability to compare Q and Q operations #2204
3131- Added ability to use a db alias on query_counter #2194
32+ - Added ability to specify collations for querysets with ``Doc.objects.collation `` #2024
33+ - Fix updates of a list field by negative index #2094
34+ - Switch from nosetest to pytest as test runner #2114
35+ - The codebase is now formatted using ``black ``. #2109
36+ - Documentation improvements:
37+ - Documented how `pymongo.monitoring ` can be used to log all queries issued by MongoEngine to the driver.
3238
3339Changes in 0.18.2
3440=================
0 commit comments