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
refactor _document_registry + log a warning when user register multiple Document classes with the same name (only flagging when this happens in different module)
Copy file name to clipboardExpand all lines: docs/changelog.rst
+3
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ Development
13
13
- make sure to read https://www.mongodb.com/docs/manual/core/transactions-in-applications/#callback-api-vs-core-api
14
14
- run_in_transaction context manager relies on Pymongo coreAPI, it will retry automatically in case of `UnknownTransactionCommitResult` but not `TransientTransactionError` exceptions
15
15
- Using .count() in a transaction will always use Collection.count_document (as estimated_document_count is not supported in transactions)
16
+
- BREAKING CHANGE: wrap _document_registry (normally not used by end users) with _DocumentRegistry which acts as a singleton to access the registry
17
+
- Log a warning in case users creates multiple Document classes with the same name as it can lead to unexpected behavior #1778
16
18
- Fix use of $geoNear or $collStats in aggregate #2493
17
19
- 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
18
20
- BREAKING CHANGE: Further to the deprecation warning, remove `full_response` from `QuerySet.modify` as it wasn't supported with Pymongo 3+
@@ -21,6 +23,7 @@ Development
21
23
- 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
22
24
- BugFix - Calling .clear on a ListField wasn't being marked as changed (and flushed to db upon .save()) #2858
23
25
26
+
24
27
Changes in 0.29.0
25
28
=================
26
29
- Fix weakref in EmbeddedDocumentListField (causing brief mem leak in certain circumstances) #2827
0 commit comments