From 74bb5d2792f28ed5f5dba5e2b5cd66d23ab84008 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sun, 10 Jul 2016 13:56:05 +0100 Subject: [PATCH] Made invoice archive sort by reverse invoice date (rather than order added to database) --- RIGS/finance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/finance.py b/RIGS/finance.py index c5d10fe8..c8e0a70b 100644 --- a/RIGS/finance.py +++ b/RIGS/finance.py @@ -126,7 +126,7 @@ class InvoiceArchive(generic.ListView): except: pass - object_list = self.model.objects.filter(filter) + object_list = self.model.objects.filter(filter).order_by('-invoice_date') return object_list