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:
committed by
Tim Graham
parent
1ac4c7d415
commit
2aa2b9f291
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user