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:
@ -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
|
||||
|
Reference in New Issue
Block a user