diff options
Diffstat (limited to 'management/commands')
-rw-r--r-- | management/commands/sendmails.py | 4 |
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 |