diff options
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) |