From 1aa8092ae3fab47e78a02dabb6564aff4a981e04 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Wed, 25 Jan 2017 14:34:55 +0100 Subject: Déplacement et renommage des templates des mails --- management/commands/sendmails.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'management/commands/sendmails.py') 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) -- cgit v1.2.1