From 41651af5cb950adb5dce264fb7e1f99d477375b2 Mon Sep 17 00:00:00 2001 From: Alexander Burdeiny Date: Wed, 19 Oct 2016 16:10:47 +0300 Subject: [PATCH] 1577 removed unsibrcibe old footer --- emencia/django/newsletter/mailer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emencia/django/newsletter/mailer.py b/emencia/django/newsletter/mailer.py index e463855a..3b123a18 100644 --- a/emencia/django/newsletter/mailer.py +++ b/emencia/django/newsletter/mailer.py @@ -395,7 +395,7 @@ class NewsLetterSender(object): #content = body_insertion(content, link_site) - if INCLUDE_UNSUBSCRIPTION: + if INCLUDE_UNSUBSCRIPTION and not self.announce: unsubscription = render_to_string('newsletter/newsletter_link_unsubscribe.html', context) content = body_insertion(content, unsubscription, end=True)