diff options
Diffstat (limited to 'views.py')
-rw-r--r-- | views.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -79,6 +79,11 @@ def confirm_subscription(request, token): def cancel_subscription(request, token): subscription = get_object_or_404(Subscription, token=token) + group = subscription.group subscription.delete() + template = loader.get_template("mail/mail_unsubscribed.txt") + context = Context({"group": group}) + send_mail("Confirmation de la désinscription", template.render(context), settings.DEFAULT_FROM_EMAIL, [subscription.email]) + return redirect("index") |