Team name don't need to be uppercase
This commit is contained in:
parent
7515c2bec6
commit
cdf279bb02
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue