Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Django Private Storage
Commits
1a2af561
Unverified
Commit
1a2af561
authored
Sep 10, 2018
by
Diederik van der Boor
Committed by
GitHub
Sep 10, 2018
Browse files
Merge pull request #23 from surfer190/master
Fix spelling error
parents
ba8daf88
580df971
Changes
2
Hide whitespace changes
Inline
Side-by-side
private_storage/fields.py
View file @
1a2af561
...
...
@@ -32,7 +32,7 @@ class PrivateFileField(models.FileField):
"""
default_error_messages
=
{
'invalid_file_type'
:
_
(
'File type not supported.'
),
'file_too_large'
:
_
(
'The file may not be larger th
e
n {max_size}.'
),
'file_too_large'
:
_
(
'The file may not be larger th
a
n {max_size}.'
),
}
def
__init__
(
self
,
*
args
,
**
kwargs
):
...
...
private_storage/storage/s3boto3.py
View file @
1a2af561
...
...
@@ -24,7 +24,7 @@ class PrivateS3BotoStorage(S3Boto3Storage):
secret_key
=
setting
(
'AWS_PRIVATE_S3_SECRET_ACCESS_KEY'
,
setting
(
'AWS_PRIVATE_SECRET_ACCESS_KEY'
,
S3Boto3Storage
.
secret_key
))
file_overwrite
=
setting
(
'AWS_PRIVATE_S3_FILE_OVERWRITE'
,
False
)
# false, differ from base class
object_parameters
=
setting
(
'AWS_PRIVATE_S3_OBJECT_PARAMETERS'
,
{})
bucket_name
=
setting
(
'AWS_PRIVATE_STORAGE_BUCKET_NAME'
,
strict
=
True
)
bucket_name
=
setting
(
'AWS_PRIVATE_STORAGE_BUCKET_NAME'
)
auto_create_bucket
=
setting
(
'AWS_PRIVATE_AUTO_CREATE_BUCKET'
,
False
)
default_acl
=
setting
(
'AWS_PRIVATE_DEFAULT_ACL'
,
'private'
)
# differ from base class
bucket_acl
=
setting
(
'AWS_PRIVATE_BUCKET_ACL'
,
default_acl
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment