Mailing fixed

This commit is contained in:
dormantman 2020-01-13 12:08:43 +03:00 committed by Kuroshini
parent 6c47fb404b
commit f048cf2e17

View File

@ -47,7 +47,7 @@ def send_email_with_news(news_ids):
"code": subscriber.update_code, "code": subscriber.update_code,
"image_url": new.image_url if new.image_url not in EMPTY_VALUES else None, "image_url": new.image_url if new.image_url not in EMPTY_VALUES else None,
"domain_uri": settings.DOMAIN_URI, "domain_uri": settings.DOMAIN_URI,
"slug": new.slug, "slug": new.slugs.get(subscriber.locale),
"country_code": subscriber.country_code, "country_code": subscriber.country_code,
"twitter_page_url": socials_for_subscriber.twitter_page_url if socials_for_subscriber else '#', "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 '#', "instagram_page_url": socials_for_subscriber.instagram_page_url if socials_for_subscriber else '#',