Update Injry model
This commit is contained in:
parent
44422cb437
commit
d154d99016
|
@ -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"),
|
||||||
|
),
|
||||||
|
]
|
|
@ -238,9 +238,7 @@ class Injury(Markdownizable, Seasonisable):
|
||||||
mechanism = models.PositiveSmallIntegerField(
|
mechanism = models.PositiveSmallIntegerField(
|
||||||
choices=INJURY_MECHANISM_CHOICE, verbose_name="Mechanism"
|
choices=INJURY_MECHANISM_CHOICE, verbose_name="Mechanism"
|
||||||
)
|
)
|
||||||
nb_week_off = models.SmallIntegerField(
|
nb_week_off = models.SmallIntegerField(default=0, verbose_name="# week off")
|
||||||
blank=True, null=True, verbose_name="# week off"
|
|
||||||
)
|
|
||||||
created_at = models.DateTimeField(auto_now_add=True)
|
created_at = models.DateTimeField(auto_now_add=True)
|
||||||
updated_at = models.DateTimeField(auto_now=True)
|
updated_at = models.DateTimeField(auto_now=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue