Skip to content

Commit

Permalink
Remove length limit for target objectives in RO/TO model
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 6, 2024
1 parent 4f52300 commit f045e4c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 17 additions & 0 deletions backend/ebios_rm/migrations/0002_alter_roto_target_objective.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.1.1 on 2024-12-06 14:51

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("ebios_rm", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="roto",
name="target_objective",
field=models.TextField(verbose_name="Target objective"),
),
]
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 f045e4c

Please sign in to comment.