Fix season information form bug
This commit is contained in:
parent
65403d79dd
commit
8ab21746fa
|
@ -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(),
|
||||
}
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue