aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-08-14 14:59:15 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-08-14 14:59:15 +0100
commitbf9b0e6669d4c62e0db59004e5ecd2ff281eff4e (patch)
tree021f9b179d50be5afcc7b6fc567ba430e780a912 /ctrack/organisations
parentb649c79b450cf3845a43374a37a1fc82cbb3a742 (diff)
working on adding list of existing systems to add system form
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/models.py4
-rw-r--r--ctrack/organisations/templates/organisations/organisation_detail.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py
index 4a0b17c..d7f1194 100644
--- a/ctrack/organisations/models.py
+++ b/ctrack/organisations/models.py
@@ -152,6 +152,10 @@ class Organisation(models.Model):
def primary_contacts(self):
return self.person_set.filter(primary_nis_contact=True)
+ def applicable_systems(self):
+ # TODO - we need to do this
+ pass
+
class Address(models.Model):
organisation = models.ForeignKey(
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html
index af50e1c..c3a2fb5 100644
--- a/ctrack/organisations/templates/organisations/organisation_detail.html
+++ b/ctrack/organisations/templates/organisations/organisation_detail.html
@@ -70,7 +70,7 @@
<div class="card bg-light">
<div class="card-body">
<div class="card-title">NIS Systems <a
- href="{% url "caf:as_create_from_caf" object.pk %}" class="btn btn-primary btn-sm float-right">Add
+ href="{% url "caf:as_create_from_org" object.slug %}" class="btn btn-primary btn-sm float-right">Add
new...</a></div>
<div class="table table-responsive">
<table class="table">