added country_code to news email template
This commit is contained in:
parent
6d72c1abfd
commit
88df92a7a5
|
|
@ -22,7 +22,8 @@ def send_email_with_news(news_ids):
|
|||
"subtitle": sent_news.subtitle.get(s.locale),
|
||||
"description": sent_news.description.get(s.locale),
|
||||
"code": s.update_code,
|
||||
"domain_uri": settings.DOMAIN_URI}),
|
||||
"domain_uri": settings.DOMAIN_URI,
|
||||
"country_code": s.country_code}),
|
||||
settings.EMAIL_HOST_USER, [s.send_to], fail_silently=False)
|
||||
except SMTPException:
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
<p>{{ description }} </p>
|
||||
|
||||
https://{{ domain_uri }}{% url 'web:notification:unsubscribe' code %}
|
||||
https://{{ country_code }}.{{ domain_uri }}{% url 'web:notification:unsubscribe' code %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user