diff options
| author | Simon Charette <charette.s@gmail.com> | 2025-04-02 18:53:36 -0400 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-04-11 09:06:53 +0200 |
| commit | b97af5e696b235876c1a1c8d8a704580f2aeabc2 (patch) | |
| tree | 8b70ed9a518b3f915e0dab759b91d3ed959abe67 /docs | |
| parent | 0ba34e7ca0098db26344b7bb5b07061999ae09d4 (diff) | |
[5.2.x] Fixed #36288 -- Addressed improper handling of duplicates in values_list().
Now that selected aliases are stored in sql.Query.selected: dict[str, Any]
the values_list() method must ensures that duplicate field name references are
assigned unique aliases.
Refs #28900.
Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a.
Thanks Claude for the report.
Backport of 21f8be76d43aa1ee5ae41c1e0a428cfea1f231c1 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 139ce32da1..cc12e7b34f 100644 --- a/docs/releases/5.2.1.txt +++ b/docs/releases/5.2.1.txt @@ -32,3 +32,7 @@ Bugfixes * 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`). + +* Fixed a regression in Django 5.2 that caused improper values to be returned + from ``QuerySet.values_list()`` when duplicate field names were specified + (:ticket:`36288`). |
