diff --git a/apps/news/tasks.py b/apps/news/tasks.py index 6f48e17c..99065fc8 100644 --- a/apps/news/tasks.py +++ b/apps/news/tasks.py @@ -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}),