diff options
| author | Simon Charette <charette.s@gmail.com> | 2025-04-29 13:42:26 -0400 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-04-30 11:39:37 +0200 |
| commit | 7f6a5fbe2ef26d9970508d5a7236fe009ec274d0 (patch) | |
| tree | 8188765a97ea810dccbb6413ac49bb6ba13ad74e /docs | |
| parent | af241dfa7d9c201f2bf341976cc1740a248df37c (diff) | |
[5.2.x] Fixed #36360 -- Fixed QuerySet.update() crash when referring annotations through values().
The issue was only manifesting itself when also filtering againt a related
model as that forces the usage of a subquery because SQLUpdateCompiler doesn't
support the UPDATE FROM syntax yet.
Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a.
Refs #28900.
Thanks Gav O'Connor for the detailed report.
Backport of 8ef4e0bd423ac3764004c73c3d1098e7a51a2945 from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/5.2.1.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/5.2.1.txt b/docs/releases/5.2.1.txt index a79d61c60a..19d14bbddf 100644 --- a/docs/releases/5.2.1.txt +++ b/docs/releases/5.2.1.txt @@ -51,3 +51,7 @@ Bugfixes * Fixed a regression in Django 5.2 that caused a crash when serializing email alternatives or attachments due to named tuple mismatches (:ticket:`36309`). + +* Fixed a regression in Django 5.2 that caused a crash when using ``update()`` + on a ``QuerySet`` filtered against a related model and including references + to annotations through ``values()`` (:ticket:`36360`). |
