diff options
Diffstat (limited to 'ctrack/organisations/views.py')
-rw-r--r-- | ctrack/organisations/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py index 5726aa2..324f933 100644 --- a/ctrack/organisations/views.py +++ b/ctrack/organisations/views.py @@ -122,7 +122,7 @@ class OrganisationDetailView(PermissionRequiredMixin, DetailView): ] flat_sdes = sorted( list(itertools.chain.from_iterable(_sdes)), - key=lambda e: e.datetime, + key=lambda e: e.date, reverse=True, ) |