def resource_from_uri(self, fk_resource, uri, request=None, related_obj=None, related_name=None):
        try:
            obj = fk_resource.get_via_uri(uri, request=request)
            fk_resource = self.get_related_resource(obj)
            return super(GenericForeignKeyField, self).resource_from_uri(fk_resource, uri, request, related_obj, related_name)
        except ObjectDoesNotExist:
            raise ApiFieldError(uri % "Could not find the provided object via resource URI '%s'.")
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/contrib/contenttypes/fields.py/GenericForeignKeyField.resource_from_uri/swapped operands of `%`