From 4f33cf66f8d065407ee901cb946cce1588318a7f Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 5 May 2020 18:06:38 +0200 Subject: [PATCH] Fix one form validation --- apps/tournament/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tournament/forms.py b/apps/tournament/forms.py index 7c700dc..a61f469 100644 --- a/apps/tournament/forms.py +++ b/apps/tournament/forms.py @@ -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