diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-21 17:08:24 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-21 17:08:35 +0100 |
commit | ecd2c19b265e3974707da0d9b8e260749dcf4a9f (patch) | |
tree | a47b8e820e98e39fca7108c1f98bc500bf0c98d9 /ctrack/organisations/views.py | |
parent | 07c741c785761cfa0e9895e35ba7e1f1549ce676 (diff) |
renamed a field in a model to date and look what I need! new migrations and fixed tests
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, ) |