From 7b3c41c5b989bc5c6d95d58f845f3baf6cb1d719 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Wed, 10 Sep 2008 10:27:20 +0200 Subject: [PATCH] Added where clause which was accidentally deleted. --- apps/newtagging/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/newtagging/models.py b/apps/newtagging/models.py index e988b6c9d..56d73bf5a 100644 --- a/apps/newtagging/models.py +++ b/apps/newtagging/models.py @@ -236,6 +236,7 @@ class TagManager(models.Manager): HAVING COUNT(%(tagged_item)s.object_id) = %(tag_count)s ) AS temporary ) + AND %(tag)s.id NOT IN (%(tag_id_placeholders)s) %(extra_where)s GROUP BY %(tag_columns)s %(min_count_sql)s -- 2.20.1