mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
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:
committed by
Tim Graham
parent
4df7e8483b
commit
801a84ae32
@@ -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