fix bug
This commit is contained in:
parent
393ecbb55c
commit
5ec81f417a
|
|
@ -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}),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user