diff --git a/backend/tprm/migrations/0001_initial.py b/backend/tprm/migrations/0001_initial.py index 09029447b..57aa75c0f 100644 --- a/backend/tprm/migrations/0001_initial.py +++ b/backend/tprm/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 5.1 on 2024-09-13 18:54 +# Generated by Django 5.1 on 2024-09-13 19:01 import django.db.models.deletion import iam.models @@ -96,7 +96,7 @@ class Migration(migrations.Migration): ('dependency', models.IntegerField(default=0, verbose_name='Dependency')), ('maturity', models.IntegerField(default=0, verbose_name='Maturity')), ('trust', models.IntegerField(default=0, verbose_name='Trust')), - ('conclusion', models.CharField(blank=True, choices=[('blocker', 'Blocker'), ('warning', 'Warning'), ('ok', 'Ok'), ('not_applicable', 'Not applicable')], null=True, verbose_name='Conclusion')), + ('conclusion', models.CharField(blank=True, choices=[('blocker', 'Blocker'), ('warning', 'Warning'), ('ok', 'Ok'), ('not_applicable', 'Not applicable')], max_length=14, null=True, verbose_name='Conclusion')), ('authors', models.ManyToManyField(blank=True, related_name='%(class)s_authors', to=settings.AUTH_USER_MODEL, verbose_name='Authors')), ('compliance_assessment', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.complianceassessment')), ('entity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tprm.entity')), diff --git a/backend/tprm/models.py b/backend/tprm/models.py index 2defb73da..3b2c63cb3 100644 --- a/backend/tprm/models.py +++ b/backend/tprm/models.py @@ -57,6 +57,7 @@ class Conclusion(models.TextChoices): Evidence, on_delete=models.SET_NULL, blank=True, null=True ) conclusion = models.CharField( + max_length=14, choices=Conclusion.choices, verbose_name=_("Conclusion"), blank=True,