Skip to content

Commit

Permalink
Merge pull request #91 from nvi9/master
Browse files Browse the repository at this point in the history
Support django-storages >=1.14 (Amazon S3)
  • Loading branch information
amorilla authored Oct 8, 2023
2 parents 3a78403 + b682ea6 commit d2845a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions private_storage/storage/s3boto3.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class PrivateS3BotoStorage(S3Boto3Storage):
Private storage bucket for S3
"""

access_key_names = ['AWS_PRIVATE_S3_ACCESS_KEY_ID', 'AWS_PRIVATE_ACCESS_KEY_ID'] + S3Boto3Storage.access_key_names
secret_key_names = ['AWS_PRIVATE_S3_SECRET_ACCESS_KEY', 'AWS_PRIVATE_SECRET_ACCESS_KEY'] + S3Boto3Storage.secret_key_names
#access_key_names = ['AWS_PRIVATE_S3_ACCESS_KEY_ID', 'AWS_PRIVATE_ACCESS_KEY_ID'] + getattr(S3Boto3Storage, 'access_key_names', [])
#secret_key_names = ['AWS_PRIVATE_S3_SECRET_ACCESS_KEY', 'AWS_PRIVATE_SECRET_ACCESS_KEY'] + getattr(S3Boto3Storage, 'secret_key_names', [])

def __init__(self, **settings):
super().__init__(**settings)
Expand Down

0 comments on commit d2845a8

Please sign in to comment.