From 49ae0f18f5ef2d1460af8b742c1df872d64e2b4f Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 6 May 2020 00:20:39 +0200 Subject: [PATCH] Send a mail to people in a team --- apps/tournament/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tournament/views.py b/apps/tournament/views.py index b0a4784..db5294b 100644 --- a/apps/tournament/views.py +++ b/apps/tournament/views.py @@ -165,7 +165,7 @@ class TeamDetailView(LoginRequiredMixin, DetailView): context = super().get_context_data(**kwargs) context["title"] = _("Information about team") - context["team_users_emails"] = [user.email for user in self.object.users] + context["team_users_emails"] = [user.email for user in self.object.users.all()] return context