From cdf279bb02b127d904ab6071e873d49e100d002a Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 4 Feb 2022 15:40:45 +0100 Subject: [PATCH] Team name don't need to be uppercase --- apps/participation/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/participation/forms.py b/apps/participation/forms.py index e0e427c..5491f78 100644 --- a/apps/participation/forms.py +++ b/apps/participation/forms.py @@ -20,7 +20,7 @@ class TeamForm(forms.ModelForm): """ def clean_name(self): if "name" in self.cleaned_data: - name = self.cleaned_data["name"].upper() + name = self.cleaned_data["name"] if not self.instance.pk and Team.objects.filter(name=name).exists(): raise ValidationError(_("This name is already used.")) return name