Ask file provider for URL
Don't reason the URL from implmentation specific magic.
This commit is contained in:
parent
8db0e47107
commit
2fe3bbfbdd
1 changed files with 1 additions and 2 deletions
|
@ -96,6 +96,5 @@ def trackname(room, day):
|
||||||
def sponsor_thumbnail(sponsor_logo):
|
def sponsor_thumbnail(sponsor_logo):
|
||||||
if sponsor_logo is not None:
|
if sponsor_logo is not None:
|
||||||
if sponsor_logo.upload:
|
if sponsor_logo.upload:
|
||||||
logo_file = os.path.join(settings.MEDIA_URL, str(sponsor_logo.upload))
|
return sponsor_logo.upload.url
|
||||||
return logo_file
|
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Reference in a new issue