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

[5.2.x] Fixed #36388 -- Made QuerySet.union() return self when called with no arguments.

Regression in 9cb8baa0c4.
Thank you to Antoine Humeau for the report and Simon Charette for the review.

Backport of 802baf5da5 from main.
This commit is contained in:
Colleen Dunlap
2025-05-15 15:41:59 -04:00
committed by Sarah Boyce
parent 6228a35095
commit 787f3130f7
4 changed files with 13 additions and 0 deletions

View File

@@ -15,3 +15,6 @@ Bugfixes
* 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`).
* Fixed a regression in Django 5.2 that caused a crash when no arguments were
passed into ``QuerySet.union()`` (:ticket:`36388`).