X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/655e8e9cc4d5e70d59ca19a809fbed51fa10d921..ad52d2dda38fe645613acdd2c3b9de006cb58cf9:/apps/newtagging/models.py 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),