From: Marek Stępniowski Date: Wed, 10 Sep 2008 08:27:20 +0000 (+0200) Subject: Added where clause which was accidentally deleted. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/7b3c41c5b989bc5c6d95d58f845f3baf6cb1d719?ds=inline Added where clause which was accidentally deleted. --- 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