You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- BREAKING CHANGE: GenericReferenceField now requires `choices`
22
24
- BREAKING CHANGE: Dropped support for PyMongo < 4.14
23
25
- BREAKING CHANGE: Dropped support for MongoDB < 4.2
@@ -26,19 +28,27 @@ Changes in 0.3.0
26
28
- Add support for transaction through run_in_transaction (kudos to juannyG for this) #2569
27
29
Some considerations:
28
30
- make sure to read https://www.mongodb.com/docs/manual/core/transactions-in-applications/#callback-api-vs-core-api
29
-
- run_in_transaction context manager relies on Pymongo coreAPI, it will retry automatically in case of `UnknownTransactionCommitResult` but not `TransientTransactionError` exceptions
30
-
- Using .count() in a transaction will always use Collection.count_document (as estimated_document_count is not supported in transactions)
31
-
- BREAKING CHANGE: wrap _document_registry (normally not used by end users) with _DocumentRegistry which acts as a singleton to access the registry
32
-
- Log a warning in case users creates multiple Document classes with the same name as it can lead to unexpected behavior #1778
31
+
- run_in_transaction context manager relies on Pymongo coreAPI, it will retry automatically
32
+
in case of `UnknownTransactionCommitResult` but not `TransientTransactionError` exceptions
33
+
- Using .count() in a transaction will always use Collection.count_document (as estimated_document_count is not
34
+
supported in transactions)
35
+
- BREAKING CHANGE: wrap _document_registry (normally not used by end users) with _DocumentRegistry which acts as a
36
+
singleton to access the registry
37
+
- Log a warning in case users creates multiple Document classes with the same name as it can lead
38
+
to unexpected behavior #1778
33
39
- Fix use of $geoNear or $collStats in aggregate #2493
34
-
- BREAKING CHANGE: Further to the deprecation warning, remove ability to use an unpacked list to `Queryset.aggregate(*pipeline)`, a plain list must be provided instead `Queryset.aggregate(pipeline)`, as it's closer to pymongo interface
35
-
- BREAKING CHANGE: Further to the deprecation warning, remove `full_response` from `QuerySet.modify` as it wasn't supported with Pymongo 3+
40
+
- BREAKING CHANGE: Further to the deprecation warning, remove ability to use an unpacked list to `Queryset.aggregate(*pipeline)`,
41
+
a plain list must be provided instead `Queryset.aggregate(pipeline)`, as it's closer to pymongo interface
42
+
- BREAKING CHANGE: Further to the deprecation warning, remove `full_response` from `QuerySet.modify`
43
+
as it wasn't supported with Pymongo 3+
36
44
- Fixed stacklevel of many warnings (to point places emitting the warning more accurately)
37
45
- Add support for collation/hint/comment to delete/update and aggregate #2842
38
-
- BREAKING CHANGE: Remove LongField as it's equivalent to IntField since we drop support to Python2 long time ago (User should simply switch to IntField) #2309
46
+
- BREAKING CHANGE: Remove LongField as it's equivalent to IntField since we drop support to Python2 long
47
+
time ago (User should simply switch to IntField) #2309
39
48
- BugFix - Calling .clear on a ListField wasn't being marked as changed (and flushed to db upon .save()) #2858
40
49
- Improve error message in case a document assigned to a ReferenceField wasn't saved yet #1955
41
-
- BugFix - Take `where()` into account when using `.modify()`, as in MyDocument.objects().where("this[field] >= this[otherfield]").modify(field='new') #2044
50
+
- BugFix - Take `where()` into account when using `.modify()`, as in
0 commit comments