diff options
| author | Simon Charette <charette.s@gmail.com> | 2025-04-04 14:42:31 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-04-07 23:49:23 +0200 |
| commit | 5d2a0c51d459379447563af3789a6d941ca4947c (patch) | |
| tree | 7793f85ce46da02ae1cc6bde50357995f3d7bce7 /docs | |
| parent | 77d2037511cc0152af6bea402bd09632ed7ca551 (diff) | |
[5.2.x] Fixed #36301 -- Fixed select_for_update(of) crash when using values()/values_list().
Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a which allowed for
annotations to be SELECT'ed before model field references through
values()/values_list() and broke assumptions the select_for_update(of)
table infererence logic had about model fields always being first.
Refs #28900.
Thanks OutOfFocus4 for the report and Sarah for the test.
Backport of 71a19a0e475165dbc14c1fe02f552013ee670e4c 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 b2ff7c22d4..139ce32da1 100644 --- a/docs/releases/5.2.1.txt +++ b/docs/releases/5.2.1.txt @@ -28,3 +28,7 @@ Bugfixes ``allow_overwrite=True``, where leftover content from a previously larger file could remain after overwriting with a smaller one due to lack of truncation (:ticket:`36298`). + +* Fixed a regression in Django 5.2 that caused a crash when using + ``QuerySet.select_for_update(of=(…))`` with ``values()/values_list()`` + including expressions (:ticket:`36301`). |
