diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-23 16:10:06 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-23 16:10:06 +0100 |
commit | 247a88d2d129a83a8891ae0d356e23d513259e14 (patch) | |
tree | 79500433d083764176c0cccb81641776e4c75c11 /ctrack/caf/views.py | |
parent | 0b52f8d4c49302716915b4a2d756c49688b8d727 (diff) |
improved CAF detail page
Diffstat (limited to 'ctrack/caf/views.py')
-rw-r--r-- | ctrack/caf/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index e8479ab..eb74036 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -27,7 +27,7 @@ def caf_detail_view(request, pk): # caf_principles = CAFPrinciple.objects.all() _scrs = [] _events = list(itertools.chain(caf.cafsingledateevent_set.all(), caf.caftwindateevent_set.all())) - all_events = sorted(_events, key=lambda x: x.date, reverse=True) + all_events = sorted(_events, key=lambda x: x.date, reverse=False) for ass in assessments: lst_scores = [ass, CAFAssessmentOutcomeScore.objects.filter(caf_assessment=ass)] _scrs.append(lst_scores) |