1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 18:22:23 +00:00

Fix one form validation

This commit is contained in:
Yohann D'ANELLO 2020-05-05 18:06:38 +02:00
parent ec39d94e34
commit 4f33cf66f8

View File

@ -50,7 +50,7 @@ class OrganizerForm(forms.ModelForm):
cleaned_data = super().clean() cleaned_data = super().clean()
if TFJMUser.objects.filter(email=cleaned_data["email"], year=os.getenv("TFJM_YEAR")).exists(): 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 return cleaned_data