

def chart_resource_image(request, project_slug, resource_slug):
    resource = get_object_or_404(Resource, slug=resource_slug, project__slug=project_slug)
    if resource.project.private:
        raise PermissionDenied
    return HttpResponseRedirect(get_image_url(RLStats.objects.by_resource(resource)))

dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/charts/views.py chart_resource_image/original