From ecd2c19b265e3974707da0d9b8e260749dcf4a9f Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 21 Oct 2020 17:08:24 +0100 Subject: renamed a field in a model to date and look what I need! new migrations and fixed tests --- ctrack/organisations/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctrack/organisations/views.py') 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, ) -- cgit v1.2.3