X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/20be4d9d8dad31ecbda183f4b5c74c9d80799f72..efe8b4c05710dc2385b2aaf0b8a6a93778f53972:/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),