X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e81500796eb5163e07ac6b02109666747fb0c206..a70cbcf401eb1ebc0009cc1ce9d0d8e664cc9642:/src/newsletter/forms.py 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