summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-09-30 18:18:33 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-09-30 18:19:36 +0200
commit7a1675806a37375698df208c00f892cc81afe1b9 (patch)
tree2b7621f82a90825b446aa9a77fea64e4bea8c2ad /docs
parentecf6506f44cd09021927a821eb14e3f7f726ab14 (diff)
[4.1.x] Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers."
This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 and adds two regression tests: - test_related_manager_refresh(), and - test_create_copy_with_m2m(). Thanks joeli for the report. Backport of 5e0aa362d91d000984995ce374c2d7547d8d107f from main
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/4.1.2.txt4
-rw-r--r--docs/releases/4.1.txt3
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/releases/4.1.2.txt b/docs/releases/4.1.2.txt
index d607c34c92..498c645920 100644
--- a/docs/releases/4.1.2.txt
+++ b/docs/releases/4.1.2.txt
@@ -43,3 +43,7 @@ Bugfixes
* Fixed a regression in Django 4.1 that caused a crash for :class:`View`
subclasses with asynchronous handlers when handling non-allowed HTTP methods
(:ticket:`34062`).
+
+* Reverted caching related managers for ``ForeignKey``, ``ManyToManyField``,
+ and ``GenericRelation`` that caused the incorrect refreshing of related
+ objects (:ticket:`33984`).
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt
index 11268df298..08fb7c2abc 100644
--- a/docs/releases/4.1.txt
+++ b/docs/releases/4.1.txt
@@ -530,7 +530,8 @@ Miscellaneous
* Related managers for :class:`~django.db.models.ForeignKey`,
:class:`~django.db.models.ManyToManyField`, and
:class:`~django.contrib.contenttypes.fields.GenericRelation` are now cached
- on the :class:`~django.db.models.Model` instance to which they belong.
+ on the :class:`~django.db.models.Model` instance to which they belong. *This
+ change was reverted in Django 4.1.2.*
* The Django test runner now returns a non-zero error code for unexpected
successes from tests marked with :py:func:`unittest.expectedFailure`.