aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-08-28 11:03:49 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-08-28 11:03:49 +0100
commit5f4e80b9c5c39e6eebb86edce20ffe107c03aa3e (patch)
tree8f56e45f7660ee1754cf7a8d4170fdad1ac7719b /ctrack/caf
parent0b1c397af82abd41e4379bd1f1eab490fe22db38 (diff)
tracked down the bastard
Diffstat (limited to 'ctrack/caf')
-rw-r--r--ctrack/caf/templates/caf/caf_detail.html2
-rw-r--r--ctrack/caf/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html
index fc2fcfd..fdd939e 100644
--- a/ctrack/caf/templates/caf/caf_detail.html
+++ b/ctrack/caf/templates/caf/caf_detail.html
@@ -72,7 +72,7 @@
<tr>
<td><a href="{% url "caf:ass_detail" system.id %}">{{ system.name }}</a></td>
<td>{{ system.function }}<br>
- <a href="{% url "caf:detail" system.caf.pk %}" class="small">
+ <a href="{% url "caf:detail" system.pk %}" class="small">
{{ system.caf }}
</a> <span class="text-muted"> | <a href="#" class="small">Edit System</a></span>
</td>
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py
index 4eacd08..4dbde02 100644
--- a/ctrack/caf/views.py
+++ b/ctrack/caf/views.py
@@ -37,7 +37,7 @@ def caf_detail_view(request, pk):
"object": caf,
"assessments_and_scores": _scrs,
"organisation": caf.organisation,
- "systems": caf.systems,
+ "systems": caf.systems.all(),
}
return render(request, "caf/caf_detail.html", context)