File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ classifiers = [
3232requires-python = " >=3.9"
3333dependencies = [
3434 " django>=2.0" ,
35- " django-storages" ,
35+ " django-storages>=1.6 " ,
3636 " boto3" ,
3737]
3838
Original file line number Diff line number Diff line change 11from storages .backends .s3boto3 import S3Boto3Storage
2+ from storages .utils import clean_name
23
34
45class S3OptimizedUploadStorage (S3Boto3Storage ):
@@ -16,7 +17,7 @@ class S3OptimizedUploadStorage(S3Boto3Storage):
1617 def _save (self , name , content ):
1718 # Basically copy the implementation of _save of S3Boto3Storage
1819 # and replace the obj.upload_fileobj with a copy function
19- cleaned_name = self . _clean_name (name )
20+ cleaned_name = clean_name (name )
2021 name = self ._normalize_name (cleaned_name )
2122 params = self ._get_write_parameters (name , content )
2223
You can’t perform that action at this time.
0 commit comments