From 2fe3bbfbdd3dddbedfb20a8f0a19368fdaca7307 Mon Sep 17 00:00:00 2001 From: Sachi King Date: Thu, 30 Mar 2017 20:26:31 +1100 Subject: [PATCH] Ask file provider for URL Don't reason the URL from implmentation specific magic. --- pinaxcon/templatetags/pyconau2017_tags.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pinaxcon/templatetags/pyconau2017_tags.py b/pinaxcon/templatetags/pyconau2017_tags.py index 1b78f3cf..894b077f 100644 --- a/pinaxcon/templatetags/pyconau2017_tags.py +++ b/pinaxcon/templatetags/pyconau2017_tags.py @@ -96,6 +96,5 @@ def trackname(room, day): def sponsor_thumbnail(sponsor_logo): if sponsor_logo is not None: if sponsor_logo.upload: - logo_file = os.path.join(settings.MEDIA_URL, str(sponsor_logo.upload)) - return logo_file + return sponsor_logo.upload.url return ""