Update models
This commit is contained in:
parent
fd6dcb56a4
commit
81727fbdf8
|
@ -272,7 +272,7 @@ class SeasonInformationAdmin(admin.ModelAdmin):
|
|||
list_display = (
|
||||
"gymnast",
|
||||
"season",
|
||||
"category",
|
||||
# "category",
|
||||
"number_of_training_sessions_per_week",
|
||||
"number_of_hours_per_week",
|
||||
"number_of_s_and_c_sessions_per_week",
|
||||
|
|
|
@ -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(),
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
# Generated by Django 4.2 on 2024-04-16 08:41
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("followup", "0064_intensity_average_time_by_passe_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="heightweight",
|
||||
options={
|
||||
"ordering": ["date"],
|
||||
"verbose_name": "Height & weight",
|
||||
"verbose_name_plural": "Heights & weights",
|
||||
},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name="wellbeing",
|
||||
options={"ordering": ["date"]},
|
||||
),
|
||||
]
|
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 4.2 on 2024-04-16 08:47
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("followup", "0065_alter_heightweight_options_alter_wellbeing_options"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name="seasoninformation",
|
||||
name="category",
|
||||
),
|
||||
]
|
|
@ -701,10 +701,10 @@ class SeasonInformation(models.Model):
|
|||
max_digits=3,
|
||||
decimal_places=1,
|
||||
)
|
||||
category = models.PositiveSmallIntegerField(
|
||||
choices=CATEGORY_CHOICES_ARRAY,
|
||||
verbose_name="Category",
|
||||
)
|
||||
# category = models.PositiveSmallIntegerField(
|
||||
# choices=CATEGORY_CHOICES_ARRAY,
|
||||
# verbose_name="Category",
|
||||
# )
|
||||
club = models.ForeignKey(
|
||||
Club, null=True, on_delete=models.SET_NULL, related_name="season_informations"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue