chore: Rename the bucket to bucket_name. (#32576)

https://github.com/jschneier/django-storages/blob/master/CHANGELOG.rst#1101-2020-09-13
This commit is contained in:
Awais Qureshi
2023-06-27 13:17:28 +05:00
committed by GitHub
parent 85fee783c1
commit 4aca4d3fbb
2 changed files with 2 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ class ReportStore:
return DjangoStorageReportStore(
storage_class=DJANGO_STORE_STORAGE_CLASS,
storage_kwargs={
'bucket': config['BUCKET'],
'bucket_name': config['BUCKET'],
'location': config['ROOT_PATH'],
'custom_domain': config.get("CUSTOM_DOMAIN", None),
'querystring_expire': 300,

View File

@@ -919,7 +919,7 @@ class SoftwareSecurePhotoVerification(PhotoVerification):
if "AWS_SECRET_KEY" in config:
storage_kwargs["secret_key"] = config["AWS_SECRET_KEY"]
if "S3_BUCKET" in config:
storage_kwargs["bucket"] = config["S3_BUCKET"]
storage_kwargs["bucket_name"] = config["S3_BUCKET"]
storage_kwargs["querystring_expire"] = self.IMAGE_LINK_DURATION
return get_storage(storage_class, **storage_kwargs)