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:04:49 +0200 |
| commit | 21f8be76d43aa1ee5ae41c1e0a428cfea1f231c1 (patch) | |
| tree | bc1322e008153bbfd5424e74ecb65c7fab453649 /docs | |
| parent | 2d1ac1dce8a1c169def5af01fc871e33f93c27c3 (diff) | |
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.
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`). |
