From: Marek Stępniowski Date: Tue, 9 Sep 2008 14:21:07 +0000 (+0200) Subject: ... X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/ad52d2dda38fe645613acdd2c3b9de006cb58cf9?ds=inline;hp=655e8e9cc4d5e70d59ca19a809fbed51fa10d921 ... --- diff --git a/apps/newtagging/models.py b/apps/newtagging/models.py index 0c2b0e1f0..5385e9506 100644 --- a/apps/newtagging/models.py +++ b/apps/newtagging/models.py @@ -233,7 +233,7 @@ class TagManager(models.Manager): ) AND %(tag)s.id NOT IN (%(tag_id_placeholders)s) %(extra_where)s - GROUP BY %(tag)s.id, %(tag)s.name + GROUP BY %(tag_columns)s %(min_count_sql)s ORDER BY %(tag)s.%(ordering)s ASC""" % { 'tag': qn(self.model._meta.db_table),