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.
This commit is contained in:
Paweł Marczewski 2015-05-24 19:05:56 +02:00 committed by Tim Graham
parent 4df7e8483b
commit 801a84ae32
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`).