Skip to content

Commit e2f6e1e

Browse files
committed
change
1 parent f260132 commit e2f6e1e

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

backend/pycon/storages.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,14 @@ def generate_upload_url(self, file_obj):
6262

6363
class PrivateCustomS3Boto3Storage(CustomS3Boto3Storage):
6464
default_acl = "private"
65+
custom_domain = None
66+
querystring_auth = True
6567

6668
def get_object_parameters(self, name):
6769
params = super().get_object_parameters(name)
6870
params.pop("CacheControl", None)
6971
return params
7072

71-
def get_default_settings(self):
72-
settings = super().get_default_settings()
73-
settings["custom_domain"] = None
74-
settings["querystring_auth"] = True
75-
return settings
76-
7773

7874
class CustomInMemoryStorage(InMemoryStorage):
7975
is_remote = False

backend/pycon/tests/test_storage.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,3 @@ def test_private_storage_removes_cache_control_params():
5151
storage = PrivateCustomS3Boto3Storage()
5252
params = storage.get_object_parameters("test.pdf")
5353
assert "CacheControl" not in params
54-
55-
56-
def test_private_storage_removes_public_settings():
57-
storage = PrivateCustomS3Boto3Storage()
58-
params = storage.get_default_settings()
59-
assert params["custom_domain"] is None
60-
assert params["querystring_auth"]

0 commit comments

Comments
 (0)