def extra_filters(self, pieces, pos, negate):
        """
        Return an extra filter to the queryset so that the results are filtered
        on the appropriate content type.
        """
        if negate:
            return []
        ContentType = get_model("contenttypes", "contenttype")
        content_type = ContentType.objects.get_for_model(self.model)
        prefix = "__".join(pieces[:pos + 1])
        return [((prefix, self.content_type_field_name) % "%s__%s",
            content_type)]
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/contenttypes/generic.py/GenericRelation.extra_filters/swapped operands of `%`