From e4e0bd7ca0f1e48254939b3d2d114756ca20d6eb Mon Sep 17 00:00:00 2001 From: Mira Date: Thu, 21 Mar 2024 14:32:01 +0100 Subject: [PATCH] Fix regression in thumb filter (#4006) --- src/pretix/helpers/templatetags/thumb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/helpers/templatetags/thumb.py b/src/pretix/helpers/templatetags/thumb.py index 79ea1e7155..d3895a5570 100644 --- a/src/pretix/helpers/templatetags/thumb.py +++ b/src/pretix/helpers/templatetags/thumb.py @@ -45,4 +45,4 @@ def thumb(source, arg): # HACK: source.url works for some types of files (e.g. FieldFile), and for all files retrieved from Hierarkey, # default_storage.url works for all files in NanoCDNStorage. For others, this may return an invalid URL. # But for a fallback, this can probably be accepted. - return source.url if hasattr(source, 'url') else default_storage.url(source.name) + return source.url if hasattr(source, 'url') else default_storage.url(str(source))