diff options
author | Alban Gruin | 2017-09-08 12:07:41 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-08 12:07:41 +0200 |
commit | 7eee2b573efd3eefb89545f6d6682216801c9126 (patch) | |
tree | f8041c5a41a971b6a59a0757520d6f6bbd637fb5 /management | |
parent | 5e6049ca24670f41f9fa6335ea49c389c3133b86 (diff) |
Suppression des .name dans sendmails
Diffstat (limited to 'management')
-rw-r--r-- | management/commands/sendmails.py | 2 |
1 files changed, 1 insertions, 1 deletions
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...") |