From 7b91c442396edf030059f013a04de225bc3d1aad Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 15 Sep 2020 20:25:03 +0100 Subject: pycharm suggested refactor --- ctrack/caf/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ctrack/caf') 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, -- cgit v1.2.3