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