summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2025-05-14 22:49:52 -0400
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-05-16 08:21:18 +0200
commit6228a35095d06fecf55bc1a3308ab4d46cc2d57b (patch)
treed67b07b625f8a2c7484011c5b68eb9ad1ee948e8 /docs
parent954e24758c7603ff63f7b4e8308c669bfa4e256f (diff)
[5.2.x] Fixed #36392 -- Raised ValueError when subquery referencing composite pk selects too many columns.
Backport of 994dc6d8a1bae717baa236b65e11cf91ce181c53 from main.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/5.2.2.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/5.2.2.txt b/docs/releases/5.2.2.txt
index 1af581e60c..22f3009c34 100644
--- a/docs/releases/5.2.2.txt
+++ b/docs/releases/5.2.2.txt
@@ -11,3 +11,7 @@ Bugfixes
* Fixed a crash when using ``select_related`` against a ``ForeignObject``
originating from a model with a ``CompositePrimaryKey`` (:ticket:`36373`).
+
+* Fixed a bug in Django 5.2 where subqueries using ``"pk"`` to reference models
+ with a ``CompositePrimaryKey`` failed to raise ``ValueError`` when too many
+ or too few columns were selected (:ticket:`36392`).