From 156dbce36bad303a25385365047e66e8215f0ae8 Mon Sep 17 00:00:00 2001 From: melvinsoft Date: Tue, 7 Apr 2020 09:46:32 -0300 Subject: [PATCH] fix variable name --- cms/djangoapps/contentstore/views/import_export.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cms/djangoapps/contentstore/views/import_export.py b/cms/djangoapps/contentstore/views/import_export.py index f6b464479b55..44135322b41e 100644 --- a/cms/djangoapps/contentstore/views/import_export.py +++ b/cms/djangoapps/contentstore/views/import_export.py @@ -374,11 +374,11 @@ def export_status_handler(request, course_key_string): if isinstance(artifact.file.storage, FileSystemStorage): output_url = reverse_course_url('export_output_handler', course_key) elif isinstance(artifact.file.storage, S3Boto3Storage): - disposition = 'attachment; filename="{}"'.format(filename) + disposition = 'attachment; filename="{}"'.format(artifact.file.name) params = { - "ResponseContentDisposition": disposition, + 'ResponseContentDisposition': disposition, 'ResponseContentEncoding': 'application/octet-stream', - "ResponseContentType": "application/x-tgz", + 'ResponseContentType': 'application/x-tgz', } output_url = artifact.file.storage.url( artifact.file.name,