Update Injry model

This commit is contained in:
Gregory Trullemans 2023-11-14 13:50:25 +01:00
parent 44422cb437
commit d154d99016
2 changed files with 19 additions and 3 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.2 on 2023-11-14 12:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("followup", "0059_alter_injury_injury_type"),
]
operations = [
migrations.AlterField(
model_name="injury",
name="nb_week_off",
field=models.SmallIntegerField(default=0, verbose_name="# week off"),
),
]

View File

@ -238,9 +238,7 @@ class Injury(Markdownizable, Seasonisable):
mechanism = models.PositiveSmallIntegerField(
choices=INJURY_MECHANISM_CHOICE, verbose_name="Mechanism"
)
nb_week_off = models.SmallIntegerField(
blank=True, null=True, verbose_name="# week off"
)
nb_week_off = models.SmallIntegerField(default=0, verbose_name="# week off")
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)