mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 16:42:28 +01:00 
			
		
		
		
	Fix one form validation
This commit is contained in:
		@@ -50,7 +50,7 @@ class OrganizerForm(forms.ModelForm):
 | 
			
		||||
        cleaned_data = super().clean()
 | 
			
		||||
 | 
			
		||||
        if TFJMUser.objects.filter(email=cleaned_data["email"], year=os.getenv("TFJM_YEAR")).exists():
 | 
			
		||||
            self.add_error("trigram", _("This organizer already exist."))
 | 
			
		||||
            self.add_error("email", _("This organizer already exist."))
 | 
			
		||||
 | 
			
		||||
        return cleaned_data
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user