1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-02-25 12:26:31 +00:00

Compare commits

..

No commits in common. "cdf279bb02b127d904ab6071e873d49e100d002a" and "cce5e7c33c6a7efea5102df8dcc8ca1c94d33420" have entirely different histories.

2 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class TeamForm(forms.ModelForm):
"""
def clean_name(self):
if "name" in self.cleaned_data:
name = self.cleaned_data["name"]
name = self.cleaned_data["name"].upper()
if not self.instance.pk and Team.objects.filter(name=name).exists():
raise ValidationError(_("This name is already used."))
return name

View File

@ -190,8 +190,6 @@ MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
CRISPY_TEMPLATE_PACK = 'bootstrap4'
DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap4.html'