Skip to content

Commit

Permalink
Merge pull request #835 from intuitem/increase_link_max_length
Browse files Browse the repository at this point in the history
increase max length for evidence links
  • Loading branch information
Mohamed-Hacene authored Sep 18, 2024
2 parents 773ddac + 3d2e322 commit 734c670
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Generated by Django 5.1 on 2024-09-17 19:08

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("core", "0028_complianceassessment_observation_and_more"),
]

operations = [
migrations.AlterField(
model_name="appliedcontrol",
name="link",
field=models.CharField(
blank=True,
help_text="External url for action follow-up (eg. Jira ticket)",
max_length=2048,
null=True,
verbose_name="Link",
),
),
migrations.AlterField(
model_name="evidence",
name="link",
field=models.URLField(
blank=True,
help_text="Link to the evidence (eg. Jira ticket, etc.)",
max_length=2048,
null=True,
verbose_name="Link",
),
),
]
3 changes: 2 additions & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ class Evidence(NameDescriptionMixin, FolderMixin, PublishInRootFolderMixin):
link = models.URLField(
blank=True,
null=True,
max_length=2048,
help_text=_("Link to the evidence (eg. Jira ticket, etc.)"),
verbose_name=_("Link"),
)
Expand Down Expand Up @@ -1317,7 +1318,7 @@ class Status(models.TextChoices):
link = models.CharField(
null=True,
blank=True,
max_length=1000,
max_length=2048,
help_text=_("External url for action follow-up (eg. Jira ticket)"),
verbose_name=_("Link"),
)
Expand Down
17 changes: 17 additions & 0 deletions backend/tprm/migrations/0002_alter_entity_reference_link.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.1 on 2024-09-17 19:08

from django.db import migrations, models


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

operations = [
migrations.AlterField(
model_name="entity",
name="reference_link",
field=models.URLField(blank=True, max_length=2048, null=True),
),
]
2 changes: 1 addition & 1 deletion backend/tprm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Entity(NameDescriptionMixin, FolderMixin, PublishInRootFolderMixin):
"""

mission = models.TextField(blank=True)
reference_link = models.URLField(blank=True, null=True)
reference_link = models.URLField(blank=True, null=True, max_length=2048)
owned_folders = models.ManyToManyField(
"iam.Folder",
related_name="owner",
Expand Down

0 comments on commit 734c670

Please sign in to comment.