def METHOD_NAME(self, data):
    content = json.dumps(data, cls=I18nJSONEncoder, indent=2)
    return HttpResponse(
        content,
        content_type="application/json",
        headers={
            "Content-Disposition": f'attachment; filename="{self.filename}.json"',
            "Access-Control-Allow-Origin": "*",
        },
    )