1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-08 14:50:19 +02: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()