Ask file provider for URL

Don't reason the URL from implmentation specific magic.
This commit is contained in:
Sachi King 2017-03-30 20:26:31 +11:00
parent 8db0e47107
commit 2fe3bbfbdd

View file

@ -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 ""