1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-05 02:06:52 +00:00

Users should be able to send a synthesis during the fourth phase

This commit is contained in:
Yohann D'ANELLO 2020-11-03 14:31:11 +01:00
parent c62aa3ebd1
commit bf32c34d4c
2 changed files with 1 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class UploadVideoForm(forms.ModelForm):
fields = ('link',)
def clean(self):
if Phase.current_phase().phase_number != 1 and self.instance.link:
if Phase.current_phase().phase_number != 1 and Phase.current_phase().phase_number != 4 and self.instance.link:
self.add_error("link", _("You can't upload your video after the deadline."))
return super().clean()

View File

@ -179,7 +179,6 @@ class TeamDetailView(LoginRequiredMixin, FormMixin, ProcessFormView, DetailView)
return self.handle_request_validation(form)
elif isinstance(form, ValidateParticipationForm):
return self.handle_validate_participation(form)
return self.form_invalid(form)
def handle_request_validation(self, form):
"""