1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-21 20:38:22 +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

@ -81,7 +81,7 @@
</div>
{% else %}
<div class="alert alert-warning">
{% trans "Your team must be composed of 3 members and each member must upload its photo authorization." %}
{% trans "Your team must be composed of 3 members and each member must upload its photo authorization and confirm its email address." %}
</div>
{% endif %}
{% else %}

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