mirror of
				https://gitlab.com/animath/si/plateforme-corres2math.git
				synced 2025-11-04 10:22:15 +01: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()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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):
 | 
			
		||||
        """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user