This commit is contained in:
michail 2019-10-02 13:37:46 +05:00
parent 393ecbb55c
commit 5ec81f417a

View File

@ -17,9 +17,9 @@ def send_email_with_news(news_ids):
try:
for n in sent_news:
send_mail("G&M News", render_to_string(settings.NEWS_EMAIL_TEMPLATE,
{"title": sent_news.title.get(s.locale),
"subtitle": sent_news.subtitle.get(s.locale),
"description": sent_news.description.get(s.locale),
{"title": n.title.get(s.locale),
"subtitle": n.subtitle.get(s.locale),
"description": n.description.get(s.locale),
"code": s.update_code,
"domain_uri": settings.DOMAIN_URI,
"country_code": s.country_code}),