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:
parent
c62aa3ebd1
commit
bf32c34d4c
@ -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()
|
||||
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user