Skip to content

Commit

Permalink
Remove length limit for target objectives
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 6, 2024
1 parent beb349a commit 0af2a07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 4 additions & 7 deletions backend/ebios_rm/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.1.1 on 2024-12-04 13:02
# Generated by Django 5.1.1 on 2024-12-06 14:49

import django.core.validators
import django.db.models.deletion
Expand All @@ -14,7 +14,7 @@ class Migration(migrations.Migration):

dependencies = [
("core", "0044_qualification"),
("iam", "0009_create_allauth_emailaddress_objects"),
("iam", "0010_user_preferences"),
("tprm", "0003_entityassessment_representatives"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
Expand Down Expand Up @@ -158,12 +158,12 @@ class Migration(migrations.Migration):
(
"risk_matrix",
models.ForeignKey(
blank=True,
help_text="Risk matrix used as a reference for the study. Defaults to `urn:intuitem:risk:library:risk-matrix-4x4-ebios-rm`",
on_delete=django.db.models.deletion.PROTECT,
related_name="ebios_rm_studies",
to="core.riskmatrix",
verbose_name="Risk matrix",
blank=True,
),
),
],
Expand Down Expand Up @@ -438,10 +438,7 @@ class Migration(migrations.Migration):
verbose_name="Risk origin",
),
),
(
"target_objective",
models.CharField(max_length=200, verbose_name="Target objective"),
),
("target_objective", models.TextField(verbose_name="Target objective")),
(
"motivation",
models.PositiveSmallIntegerField(
Expand Down
4 changes: 1 addition & 3 deletions backend/ebios_rm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,7 @@ class Pertinence(models.IntegerChoices):
risk_origin = models.CharField(
max_length=32, verbose_name=_("Risk origin"), choices=RiskOrigin.choices
)
target_objective = models.CharField(
max_length=200, verbose_name=_("Target objective")
)
target_objective = models.TextField(verbose_name=_("Target objective"))
motivation = models.PositiveSmallIntegerField(
verbose_name=_("Motivation"),
choices=Motivation.choices,
Expand Down

0 comments on commit 0af2a07

Please sign in to comment.