X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/20be4d9d8dad31ecbda183f4b5c74c9d80799f72..4e7cc908ea8309031dbb73638ff360d512ea405b:/apps/newtagging/models.py diff --git a/apps/newtagging/models.py b/apps/newtagging/models.py index e1e92b67e..2055ec318 100644 --- a/apps/newtagging/models.py +++ b/apps/newtagging/models.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Models and managers for generic tagging. """ @@ -111,7 +112,7 @@ class TagManager(models.Manager): WHERE %(tagged_item)s.content_type_id = %(content_type_id)s %%s %(extra_where)s - GROUP BY %(tag)s.id, %(tag)s.name + GROUP BY %(tag_columns)s, %(tag)s.id, %(tag)s.name %%s ORDER BY %(tag)s.%(ordering)s ASC""" % { 'tag': qn(self.model._meta.db_table),