@classmethod
    def tags_for(cls, model, instance=None):
        if instance is not None:
            return cls.tag_model().objects.filter(**{
                '%s__content_object' % cls.tag_relname(): instance
            })
        return cls.tag_model().objects.filter(**{
            cls.tag_relname() % '%s__content_object__isnull': False
        }).distinct()
dataset/ETHPy150Open lmorchard/badg.us/vendor-local/lib/python/taggit/models.py/TaggedItemBase.tags_for/swapped operands of `%`