Revert "fix(settings): replace DEFAULT_FILE_STORAGE with STORAGES[default]" (#36907)

This reverts commit 39028b9500.
This commit is contained in:
Robert Raposa
2025-06-13 12:57:47 -04:00
committed by GitHub
parent 39028b9500
commit f4c3575bb0
16 changed files with 33 additions and 48 deletions

View File

@@ -78,7 +78,7 @@ def store_uploaded_file(
file_storage = DefaultStorage()
# If a file already exists with the supplied name, file_storage will make the filename unique.
stored_file_name = file_storage.save(stored_file_name, uploaded_file)
if is_private and settings.STORAGES["default"]["BACKEND"] == 'storages.backends.s3boto3.S3Boto3Storage':
if is_private and settings.DEFAULT_FILE_STORAGE == 'storages.backends.s3boto3.S3Boto3Storage':
S3Boto3Storage().connection.meta.client.put_object_acl(
ACL='private',
Bucket=settings.AWS_STORAGE_BUCKET_NAME,