@classmethod
    def tags_for(cls, model, instance=None):
        ct = ContentType.objects.get_for_model(model)
        kwargs = {
            "%s__content_type" % cls.tag_relname(): ct
        }
        if instance is not None:
            kwargs[cls.tag_relname() % "%s__object_id"] = instance.pk
        return cls.tag_model().objects.filter(**kwargs).distinct()
dataset/ETHPy150Open lmorchard/badg.us/vendor-local/lib/python/taggit/models.py/GenericTaggedItemBase.tags_for/swapped operands of `%`