Commit f5d10027 authored by Michal Čihař's avatar Michal Čihař

Correctly reutrn empty text in case of no advertisement

parent c2df7585
......@@ -450,7 +450,7 @@ def get_advertisement_text_mail():
Advertisement.PLACEMENT_MAIL_TEXT
)
if advertisement is None:
return None
return ''
return advertisement.text
......@@ -463,5 +463,5 @@ def get_advertisement_html_mail():
Advertisement.PLACEMENT_MAIL_HTML
)
if advertisement is None:
return None
return ''
return mark_safe(advertisement.text)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment