1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #36392 -- Raised ValueError when subquery referencing composite pk selects too many columns.

This commit is contained in:
Jacob Walls
2025-05-14 22:49:52 -04:00
committed by Sarah Boyce
parent e03e5c751c
commit 994dc6d8a1
3 changed files with 16 additions and 1 deletions

View File

@@ -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`).