mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 17:42:23 +00:00
Fix one form validation
This commit is contained in:
parent
ec39d94e34
commit
4f33cf66f8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user