aboutsummaryrefslogtreecommitdiff
path: root/management
diff options
context:
space:
mode:
authorAlban Gruin2017-01-23 13:34:04 +0100
committerAlban Gruin2017-01-23 13:34:04 +0100
commit684be8570b6e6c1c4c93ce991c4b91254906ae05 (patch)
tree39010bc8f19d4ce54bc1acf7ac9ea56648af11e4 /management
parentb26de0fca265cfaba7a4e7bdfafa67df7985609e (diff)
Ajout du bas de mail avec le lien de désinscription
Diffstat (limited to 'management')
-rw-r--r--management/commands/sendmails.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/management/commands/sendmails.py b/management/commands/sendmails.py
index 4e3b663..89c5c1b 100644
--- a/management/commands/sendmails.py
+++ b/management/commands/sendmails.py
@@ -30,4 +30,8 @@ class Command(BaseCommand):
context = Context({"subscription": subscription, "courses": grouped_courses, "week": week})
content[subscription.group.id] = template.render(context)
+ footer = loader.get_template("mail_footer.txt")
+ context = Context({"token": subscription.token})
+ mail_content = content[subscription.group.id] + footer.render(context)
+
# send content