added country_code to news email template

This commit is contained in:
michail 2019-09-30 12:42:49 +05:00
parent 6d72c1abfd
commit 88df92a7a5
2 changed files with 3 additions and 2 deletions

View File

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

View File

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