aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-08-27 13:56:56 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-08-27 13:56:56 +0100
commitde0bbafec7d1aac5aaf9c672678c257b62f14d67 (patch)
tree2fa109f3e5f690af794b5a6cca072b2f56011929 /ctrack/caf/models.py
parent75c34b747fc3f6cc776266200db4d1177ca7093e (diff)
essential service now on admin and further work to schema
Diffstat (limited to '')
-rw-r--r--ctrack/caf/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py
index fc56c30..b77cfdb 100644
--- a/ctrack/caf/models.py
+++ b/ctrack/caf/models.py
@@ -89,7 +89,7 @@ class ApplicableSystem(models.Model):
return self.organisation.person_set.filter(primary_nis_contact=True)
def __str__(self):
- return f"{self.organisation.name} | {self.name}"
+ return self.name
objects = ApplicableSystemManager()
@@ -128,6 +128,7 @@ class CAF(models.Model):
triage_review_inspector = models.ForeignKey(
Person, on_delete=models.CASCADE, blank=True, null=True
)
+ systems = models.ManyToManyField(ApplicableSystem)
comments = models.TextField(max_length=1000)
class Meta: