diff --git a/apps/news/tasks.py b/apps/news/tasks.py index 98eaa8b1..7bc2ce23 100644 --- a/apps/news/tasks.py +++ b/apps/news/tasks.py @@ -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 diff --git a/project/templates/news/news_email.html b/project/templates/news/news_email.html index c9669829..a47af685 100644 --- a/project/templates/news/news_email.html +++ b/project/templates/news/news_email.html @@ -13,7 +13,7 @@
{{ description }}
-https://{{ domain_uri }}{% url 'web:notification:unsubscribe' code %} +https://{{ country_code }}.{{ domain_uri }}{% url 'web:notification:unsubscribe' code %}