From 7eee2b573efd3eefb89545f6d6682216801c9126 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 8 Sep 2017 12:07:41 +0200 Subject: Suppression des .name dans sendmails --- management/commands/sendmails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'management/commands') diff --git a/management/commands/sendmails.py b/management/commands/sendmails.py index e81980b..3c0fab0 100644 --- a/management/commands/sendmails.py +++ b/management/commands/sendmails.py @@ -58,7 +58,7 @@ class Command(BaseCommand): if not options["test"]: context = Context({"admins": settings.ADMINS, "token": subscription.token, "domain": settings.DEFAULT_DOMAIN}) mail_content = content[subscription.group.id] + footer.render(context) - mails.append(("{0} - {1} - Semaine {2}".format(subscription.group.timetable.name, subscription.group.name, week), mail_content, settings.DEFAULT_FROM_EMAIL, [subscription.email],)) + mails.append(("{0} - {1} - Semaine {2}".format(subscription.group.timetable, subscription.group, week), mail_content, settings.DEFAULT_FROM_EMAIL, [subscription.email],)) if not options["test"]: print("Sending mails...") -- cgit v1.2.1