Commit 0df67625 authored by Michal Čihař's avatar Michal Čihař

Merge pull request #489 from ruleant/param_order

fix parameter order, url and text were in the wrong order
parents 621bcaa6 2860a43b
...@@ -69,7 +69,7 @@ class AdvertisementManager(models.Manager): ...@@ -69,7 +69,7 @@ class AdvertisementManager(models.Manager):
elif placement == Advertisement.PLACEMENT_MAIL_HTML: elif placement == Advertisement.PLACEMENT_MAIL_HTML:
text, url = random.choice(self._fallback_choices_html) text, url = random.choice(self._fallback_choices_html)
text = u'<a href="{0}">{1}</a>'.format( text = u'<a href="{0}">{1}</a>'.format(
text, url url, text
) )
else: else:
return None return None
......
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