summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2023-05-16 15:11:19 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-05-17 08:06:11 +0200
commit99e5dff737cd20b12d060e4794e097063b61ec40 (patch)
treeec5fadc1ec5d0972f879d6b22ca38a2856457aa7 /docs
parent0ec60661e61b153e6bcec64649b1b7f524eb3e18 (diff)
downloaddjango-99e5dff737cd20b12d060e4794e097063b61ec40.tar.gz
Fixed #34570 -- Silenced noop deferral of many-to-many and GFK.
While deferring many-to-many and GFK has no effect, the previous implementation of QuerySet.defer() ignore them instead of crashing. Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879. Thanks Paco Martínez for the report.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/4.2.2.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/4.2.2.txt b/docs/releases/4.2.2.txt
index a92582b7a0..ca21e5f1ec 100644
--- a/docs/releases/4.2.2.txt
+++ b/docs/releases/4.2.2.txt
@@ -15,3 +15,7 @@ Bugfixes
* Restored, following a regression in Django 4.2, ``get_prep_value()`` call in
``JSONField`` subclasses (:ticket:`34539`).
+
+* Fixed a regression in Django 4.2 that caused a crash of ``QuerySet.defer()``
+ when passing a ``ManyToManyField`` or ``GenericForeignKey`` reference. While
+ doing so is a no-op, it was allowed in older version (:ticket:`34570`).