From 9aa9150d3d02c67929d0ba64a4e2f54c64a69892 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 6 Apr 2020 16:00:45 +0100 Subject: added organisation link to caf detail page --- ctrack/caf/templates/caf/caf_detail.html | 4 ++++ ctrack/caf/views.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'ctrack/caf') diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html index 0b9dee4..f485a33 100644 --- a/ctrack/caf/templates/caf/caf_detail.html +++ b/ctrack/caf/templates/caf/caf_detail.html @@ -23,6 +23,10 @@
+ + + + diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index 153d49c..2ed969a 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -38,7 +38,8 @@ def caf_detail_view(request, pk): _scrs.append(lst_scores) context = { 'object': caf, - 'assessments_and_scores': _scrs + 'assessments_and_scores': _scrs, + 'organisation': ApplicableSystem.objects.filter(caf=caf).first().organisation } return render(request, 'caf/caf_detail.html', context) -- cgit v1.2.3
Organisation{{ organisation }}
Quality Grading: {{ object.quality_grading }}