Fix season information form bug

This commit is contained in:
Gregory Trullemans 2024-04-17 08:32:28 +02:00
parent 65403d79dd
commit 8ab21746fa
2 changed files with 3 additions and 3 deletions

View File

@ -732,7 +732,7 @@ class SeasonInformationForm(forms.ModelForm):
"number_of_hours_per_week",
"number_of_s_and_c_sessions_per_week",
"number_of_s_and_c_hours_per_week",
# "category",
"category",
"club",
)
widgets = {
@ -752,7 +752,7 @@ class SeasonInformationForm(forms.ModelForm):
"number_of_s_and_c_hours_per_week": forms.TextInput(
attrs={"class": "form-control", "placeholder": "11.5"}
),
# "category": forms.Select(attrs={"class": "form-control selectpicker"}),
"category": forms.Select(attrs={"class": "form-control selectpicker"}),
"club": forms.HiddenInput(),
}

View File

@ -681,7 +681,7 @@ class CompetitionCategory(Markdownizable):
age_max = models.PositiveSmallIntegerField(blank=True, null=True)
def __str__(self):
return f"{self.long_label} ({self.short_label}) : {self.age_min} - {self.age_max}"
return f"{self.short_label}"
class SeasonInformation(models.Model):