File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ classifiers = [
32
32
requires-python = " >=3.9"
33
33
dependencies = [
34
34
" django>=2.0" ,
35
- " django-storages" ,
35
+ " django-storages>=1.6 " ,
36
36
" boto3" ,
37
37
]
38
38
Original file line number Diff line number Diff line change 1
1
from storages .backends .s3boto3 import S3Boto3Storage
2
+ from storages .utils import clean_name
2
3
3
4
4
5
class S3OptimizedUploadStorage (S3Boto3Storage ):
@@ -16,7 +17,7 @@ class S3OptimizedUploadStorage(S3Boto3Storage):
16
17
def _save (self , name , content ):
17
18
# Basically copy the implementation of _save of S3Boto3Storage
18
19
# and replace the obj.upload_fileobj with a copy function
19
- cleaned_name = self . _clean_name (name )
20
+ cleaned_name = clean_name (name )
20
21
name = self ._normalize_name (cleaned_name )
21
22
params = self ._get_write_parameters (name , content )
22
23
You can’t perform that action at this time.
0 commit comments