1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-08-21 12:07:21 +02:00

Confirm email address is mandatory

This commit is contained in:
Yohann D'ANELLO
2020-10-11 16:49:31 +02:00
parent 6424b4658a
commit 1b1651c294
3 changed files with 18 additions and 17 deletions

View File

@@ -101,6 +101,7 @@ class TeamDetailView(LoginRequiredMixin, DetailView):
team = self.object
context["can_validate"] = team.students.count() >= 3 and \
all(r.email_confirmed for r in team.students.all()) and \
all(r.photo_authorization for r in team.students.all()) and \
team.participation.problem