add model constraints
This commit is contained in:
parent
a5f83f9fcb
commit
3c38b5b168
|
@ -22,7 +22,9 @@ class Migration(migrations.Migration):
|
|||
model_name="mindstate",
|
||||
name="fatigue",
|
||||
field=models.PositiveSmallIntegerField(
|
||||
default=7,
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
validators=[
|
||||
django.core.validators.MinValueValidator(1),
|
||||
django.core.validators.MaxValueValidator(10),
|
||||
|
@ -48,7 +50,9 @@ class Migration(migrations.Migration):
|
|||
model_name="mindstate",
|
||||
name="muscle_soreness",
|
||||
field=models.PositiveSmallIntegerField(
|
||||
default=7,
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
validators=[
|
||||
django.core.validators.MinValueValidator(1),
|
||||
django.core.validators.MaxValueValidator(10),
|
||||
|
@ -61,7 +65,9 @@ class Migration(migrations.Migration):
|
|||
model_name="mindstate",
|
||||
name="sleep",
|
||||
field=models.PositiveSmallIntegerField(
|
||||
default=7,
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
validators=[
|
||||
django.core.validators.MinValueValidator(1),
|
||||
django.core.validators.MaxValueValidator(10),
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
# Generated by Django 4.2 on 2023-07-05 08:47
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("followup", "0047_rename_mindstate_wellbeing"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="wellbeing",
|
||||
name="fatigue",
|
||||
field=models.PositiveSmallIntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
validators=[
|
||||
django.core.validators.MinValueValidator(1),
|
||||
django.core.validators.MaxValueValidator(10),
|
||||
],
|
||||
verbose_name="Fatigue",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="wellbeing",
|
||||
name="muscle_soreness",
|
||||
field=models.PositiveSmallIntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
validators=[
|
||||
django.core.validators.MinValueValidator(1),
|
||||
django.core.validators.MaxValueValidator(10),
|
||||
],
|
||||
verbose_name="Muscle Soreness",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="wellbeing",
|
||||
name="sleep",
|
||||
field=models.PositiveSmallIntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
validators=[
|
||||
django.core.validators.MinValueValidator(1),
|
||||
django.core.validators.MaxValueValidator(10),
|
||||
],
|
||||
verbose_name="Sleep",
|
||||
),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue