Skip to content

Commit c3bdec4

Browse files
authored
Set default storage to s3 when it is configured. (#4708)
Bug in the STORAGES configurations after the upgrade to Django 7. The default storage was never set to use S3 when it was configured.
1 parent f24588f commit c3bdec4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hypha/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@
545545
# S3 settings
546546

547547
if env.str("AWS_STORAGE_BUCKET_NAME", None):
548-
STORAGES["public_media_storage"] = {
548+
STORAGES["default"] = {
549549
"BACKEND": "hypha.storage_backends.PublicMediaStorage",
550550
}
551551
STORAGES["private_media_storage"] = {

0 commit comments

Comments
 (0)