1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #31377 -- Disabled grouping by aliases on QuerySet.values()/values_list() when they collide with field names.

Regression in fb3f034f1c.

Thanks Holovashchenko Vadym for the report.
This commit is contained in:
Hasan Ramezani
2020-03-19 19:54:36 +01:00
committed by Mariusz Felisiak
parent 895f28f9cb
commit 10866a10fe
4 changed files with 35 additions and 1 deletions

View File

@@ -11,3 +11,7 @@ Bugfixes
* Added the ability to handle ``.po`` files containing different plural
equations for the same language (:ticket:`30439`).
* Fixed a regression in Django 3.0 where ``QuerySet.values()`` and
``values_list()`` crashed if a queryset contained an aggregation and
``Subquery()`` annotation that collides with a field name (:ticket:`31377`).