X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e81500796eb5163e07ac6b02109666747fb0c206..448176eb618555f2bdc357e256961751a917bc33:/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