1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.8.x] Fixed #24835 -- Fixed QuerySet.exists() after an annotation with Count()

QuerySet.exists() incorrectly handled query.group_by = True
case (grouping by all select fields), causing GROUP BY
expressions to be wiped along with select fields.

Backport of 801a84ae32 from master
This commit is contained in:
Paweł Marczewski
2015-05-24 19:05:56 +02:00
committed by Tim Graham
parent 1ac4c7d415
commit 2aa2b9f291
3 changed files with 10 additions and 0 deletions

View File

@@ -14,3 +14,6 @@ Bugfixes
* Fixed crash during :djadmin:`makemigrations` if a migrations module either
is missing ``__init__.py`` or is a file (:ticket:`24848`).
* Fixed ``exists()`` returning incorrect results after annotation with
``Count()`` (:ticket:`24835`).