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:
parent
ec39d94e34
commit
4f33cf66f8
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user