From f048cf2e176fe5b746bcdc6ea0faedd9f6fa82a5 Mon Sep 17 00:00:00 2001 From: dormantman Date: Mon, 13 Jan 2020 12:08:43 +0300 Subject: [PATCH] Mailing fixed --- apps/news/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/news/tasks.py b/apps/news/tasks.py index e70b8271..d66e4db1 100644 --- a/apps/news/tasks.py +++ b/apps/news/tasks.py @@ -47,7 +47,7 @@ def send_email_with_news(news_ids): "code": subscriber.update_code, "image_url": new.image_url if new.image_url not in EMPTY_VALUES else None, "domain_uri": settings.DOMAIN_URI, - "slug": new.slug, + "slug": new.slugs.get(subscriber.locale), "country_code": subscriber.country_code, "twitter_page_url": socials_for_subscriber.twitter_page_url if socials_for_subscriber else '#', "instagram_page_url": socials_for_subscriber.instagram_page_url if socials_for_subscriber else '#',