fix: updating bucket to bucket_name. These are deprecated. (#32533)

* fix: updating bucket to bucket_name. These are deprecated.

https://github.com/jschneier/django-storages/blob/master/CHANGELOG.rst#17-2018-09-03
This commit is contained in:
Awais Qureshi
2023-06-22 16:14:22 +05:00
committed by GitHub
parent 4792f9e792
commit 92cba6c71c
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ class ImportExportS3Storage(S3Boto3Storage): # pylint: disable=abstract-method
def __init__(self):
bucket = setting('COURSE_IMPORT_EXPORT_BUCKET', settings.AWS_STORAGE_BUCKET_NAME)
super().__init__(bucket=bucket, custom_domain=None, querystring_auth=True)
super().__init__(bucket_name=bucket, custom_domain=None, querystring_auth=True)
# pylint: disable=invalid-name
course_import_export_storage = get_storage_class(settings.COURSE_IMPORT_EXPORT_STORAGE)()

View File

@@ -15,6 +15,6 @@ class CourseMetadataExportS3Storage(S3Boto3Storage): # pylint: disable=abstract
def __init__(self):
bucket = settings.COURSE_METADATA_EXPORT_BUCKET
super().__init__(bucket=bucket, custom_domain=None, querystring_auth=True)
super().__init__(bucket_name=bucket, custom_domain=None, querystring_auth=True)
course_metadata_export_storage = get_storage_class(settings.COURSE_METADATA_EXPORT_STORAGE)()