mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 17:02:24 +00:00
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
Block a user