Permalink
Browse files

Never mess with new-style S3 URLs.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
  • Loading branch information...
lamby committed Nov 29, 2017
1 parent 9e84061 commit d632662c545b97b6487103fa263006a65efdd80d
Showing with 5 additions and 0 deletions.
  1. +5 −0 django_yadt/fields.py
View
@@ -209,6 +209,11 @@ def __repr__(self):
def url(self):
url = default_storage.url(self._filename())
# Never mess with new-style S3 "v4" URLs; modifying the querystring
# breaks all authentication.
if 'X-Amz-Algorithm=' in url:
return url
if self.image.field.cachebusting_field:
suffix = getattr(
self.instance,

0 comments on commit d632662

Please sign in to comment.