Total Complexity | 3 |
Total Lines | 9 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from storages.backends.s3boto import S3BotoStorage |
||
19 | class StaticS3Storage(BaseS3Storage): |
||
20 | location = 'static' |
||
21 | default_acl = 'public-read' |
||
22 | |||
23 | def url(self, name): |
||
24 | url = super(StaticS3Storage, self).url(name) |
||
25 | if name.endswith('/') and not url.endswith('/'): |
||
26 | url += '/' |
||
27 | return url |
||
28 | |||
44 |