aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--management/commands/sendmails.py2
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...")