aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-09-15 20:25:03 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-09-15 20:25:03 +0100
commit7b91c442396edf030059f013a04de225bc3d1aad (patch)
treeaaa322bfd57d49fe3b0753cf909f0cb2f90cd8ec /ctrack/caf
parent38c4277991492226b5474481fa6e714b114ae427 (diff)
pycharm suggested refactor
Diffstat (limited to 'ctrack/caf')
-rw-r--r--ctrack/caf/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py
index 08ab736..b95965b 100644
--- a/ctrack/caf/views.py
+++ b/ctrack/caf/views.py
@@ -29,9 +29,7 @@ def caf_detail_view(request, pk):
# caf_principles = CAFPrinciple.objects.all()
_scrs = []
for ass in assessments:
- lst_scores = []
- lst_scores.append(ass)
- lst_scores.append(CAFAssessmentOutcomeScore.objects.filter(caf_assessment=ass))
+ lst_scores = [ass, CAFAssessmentOutcomeScore.objects.filter(caf_assessment=ass)]
_scrs.append(lst_scores)
context = {
"object": caf,