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

Don't upload videos after the deadline

This commit is contained in:
Yohann D'ANELLO
2020-10-20 14:51:09 +02:00
parent ab315a69ed
commit 9159e7323d
3 changed files with 16 additions and 1 deletions

View File

@ -262,6 +262,14 @@ class ParticipationDetailView(LoginRequiredMixin, DetailView):
return super().dispatch(request, *args, **kwargs)
raise PermissionDenied
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["title"] = lambda: _("Participation of team {trigram}").format(trigram=self.object.team.trigram)
context["current_phase"] = Phase.current_phase()
return context
class UploadVideoView(LoginRequiredMixin, UpdateView):
model = Video