diff options
author | Alban Gruin | 2017-01-25 14:34:55 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-25 14:34:55 +0100 |
commit | 1aa8092ae3fab47e78a02dabb6564aff4a981e04 (patch) | |
tree | b26d2e2d14ac5a16f63986793f45017be741a4ca /management/commands/sendmails.py | |
parent | a4a3aa91a9eacf0f67442d79d8aaee01b7a1256b (diff) |
Déplacement et renommage des templates des mails
Diffstat (limited to 'management/commands/sendmails.py')
-rw-r--r-- | management/commands/sendmails.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/management/commands/sendmails.py b/management/commands/sendmails.py index 1669bcc..b42d3d5 100644 --- a/management/commands/sendmails.py +++ b/management/commands/sendmails.py @@ -30,11 +30,11 @@ class Command(BaseCommand): courses = Course.objects.get_courses_for_group(subscription.group, begin__gte=start, begin__lt=end) grouped_courses = group_courses(courses) - template = loader.get_template("timetable_email.txt") + template = loader.get_template("mail/mail_timetable.txt") context = Context({"subscription": subscription, "courses": grouped_courses, "week": week}) content[subscription.group.id] = template.render(context) - footer = loader.get_template("mail_footer.txt") + footer = loader.get_template("mail/mail_footer.txt") context = Context({"admins": settings.ADMINS, "token": subscription.token}) mail_content = content[subscription.group.id] + footer.render(context) |