From 3d2e322922932d1b936c8d45dde0f3e0e2b63a78 Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Tue, 17 Sep 2024 21:10:57 +0200 Subject: [PATCH] formatting --- ...appliedcontrol_link_alter_evidence_link.py | 34 +++++++++++++++++++ backend/core/models.py | 4 +-- .../0002_alter_entity_reference_link.py | 17 ++++++++++ backend/tprm/models.py | 2 +- 4 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 backend/core/migrations/0029_alter_appliedcontrol_link_alter_evidence_link.py create mode 100644 backend/tprm/migrations/0002_alter_entity_reference_link.py diff --git a/backend/core/migrations/0029_alter_appliedcontrol_link_alter_evidence_link.py b/backend/core/migrations/0029_alter_appliedcontrol_link_alter_evidence_link.py new file mode 100644 index 000000000..b91d813a9 --- /dev/null +++ b/backend/core/migrations/0029_alter_appliedcontrol_link_alter_evidence_link.py @@ -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", + ), + ), + ] diff --git a/backend/core/models.py b/backend/core/models.py index dedb67ff9..b2ca68536 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -1207,7 +1207,7 @@ class Evidence(NameDescriptionMixin, FolderMixin, PublishInRootFolderMixin): link = models.URLField( blank=True, null=True, - max_length=1000, + max_length=2048, help_text=_("Link to the evidence (eg. Jira ticket, etc.)"), verbose_name=_("Link"), ) @@ -1318,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"), ) diff --git a/backend/tprm/migrations/0002_alter_entity_reference_link.py b/backend/tprm/migrations/0002_alter_entity_reference_link.py new file mode 100644 index 000000000..ef0c53de8 --- /dev/null +++ b/backend/tprm/migrations/0002_alter_entity_reference_link.py @@ -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), + ), + ] diff --git a/backend/tprm/models.py b/backend/tprm/models.py index 40caa82bb..6fe6815bd 100644 --- a/backend/tprm/models.py +++ b/backend/tprm/models.py @@ -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",