aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/caf/models.py')
-rw-r--r--ctrack/caf/models.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py
index bfc4765..444ab6b 100644
--- a/ctrack/caf/models.py
+++ b/ctrack/caf/models.py
@@ -45,6 +45,13 @@ class DocumentFile(models.Model):
class ApplicableSystem(models.Model):
+ CRITICAL = "CR"
+ IMPORTANT = "IM"
+ SYSTEM_CATEGORISATION = (
+ (CRITICAL, "Critical"),
+ (IMPORTANT, "Important"),
+ )
+
def get_sentinel_org():
"""
We need this so that we can ensure models.SET() is applied with a callable
@@ -71,6 +78,13 @@ class ApplicableSystem(models.Model):
null=True,
related_name="applicable_systems",
)
+ dft_categorisation = models.CharField(
+ max_length=2,
+ choices=SYSTEM_CATEGORISATION,
+ default=CRITICAL,
+ verbose_name="DfT Categorisation",
+ help_text="Refer to documentation for description of these criteria",
+ )
class Meta:
verbose_name = "NIS System"