From e48b74aa24b691411a29efadbda784d0c3ea23a7 Mon Sep 17 00:00:00 2001 From: Dan Braghis <dan.braghis@torchbox.com> Date: Wed, 21 Mar 2018 17:21:35 +0000 Subject: [PATCH] Fix sort order logic on last_update --- opentech/apply/funds/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentech/apply/funds/tables.py b/opentech/apply/funds/tables.py index 675153ced..0a31265d0 100644 --- a/opentech/apply/funds/tables.py +++ b/opentech/apply/funds/tables.py @@ -57,7 +57,7 @@ class SubmissionsTable(tables.Table): return qs.step_order(desc), True def order_last_update(self, qs, desc): - update_order = getattr(F('last_update'), 'asc' if desc else 'desc')(nulls_last=True) + update_order = getattr(F('last_update'), 'desc' if desc else 'asc')(nulls_last=True) related_actions = Activity.objects.filter(submission=OuterRef('id')) qs = qs.annotate( -- GitLab