aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
authorAlban Gruin2017-01-25 14:34:55 +0100
committerAlban Gruin2017-01-25 14:34:55 +0100
commit1aa8092ae3fab47e78a02dabb6564aff4a981e04 (patch)
treeb26d2e2d14ac5a16f63986793f45017be741a4ca /views.py
parenta4a3aa91a9eacf0f67442d79d8aaee01b7a1256b (diff)
Déplacement et renommage des templates des mails
Diffstat (limited to 'views.py')
-rw-r--r--views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/views.py b/views.py
index dbcf937..8813187 100644
--- a/views.py
+++ b/views.py
@@ -53,7 +53,7 @@ def subscribe(request, group_slug, year, week):
subscription = Subscription(email=request.POST["email"], group=group)
subscription.save()
- template = loader.get_template("mail_confirm.txt")
+ template = loader.get_template("mail/mail_confirm.txt")
context = Context({"group": group, "admins": settings.ADMINS, "token": subscription.token})
send_mail("Confirmation de l'abonnemenent", template.render(context), settings.DEFAULT_FROM_EMAIL, [request.POST["email"]])