From 2aa2b9f291e43bffc07c535dc5906094e6df0bb7 Mon Sep 17 00:00:00 2001 From: Paweł Marczewski Date: Sun, 24 May 2015 19:05:56 +0200 Subject: [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 801a84ae329a24d9adf01b700429fe8f1285b2b8 from master --- docs/releases/1.8.3.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.8.3.txt b/docs/releases/1.8.3.txt index 09aa2d8fe7..d5bde6040c 100644 --- a/docs/releases/1.8.3.txt +++ b/docs/releases/1.8.3.txt @@ -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`). -- cgit v1.3