X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e81500796eb5163e07ac6b02109666747fb0c206..f083ac4cb1be9bb6c14ce2045be90e0cdf23508e:/src/newsletter/forms.py?ds=inline diff --git a/src/newsletter/forms.py b/src/newsletter/forms.py index 8cb19ee19..d473cf3a8 100644 --- a/src/newsletter/forms.py +++ b/src/newsletter/forms.py @@ -82,6 +82,7 @@ class UnsubscribeForm(Form): subscription = self.cleaned_data['subscription'] subscription.active = False subscription.save() + mailing.unsubscribe(subscription.email) context = {'subscription': subscription} # refactor to send_noreply_mail