From 20218f0bfd5b9e29be185d814aadbba76bb25112 Mon Sep 17 00:00:00 2001 From: chirac Date: Tue, 5 Jul 2016 16:19:17 +0200 Subject: [PATCH] =?UTF-8?q?Classe=20par=20date=20du=20plus=20r=C3=A9cent?= =?UTF-8?q?=20au=20plus=20ancien=20pour=20les=20cotiz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cotisations/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cotisations/views.py b/cotisations/views.py index c7570da5..d7d531e0 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -82,5 +82,5 @@ def edit_facture(request, factureid): return form({'factureform': facture_form}, 'cotisations/facture.html', request) def index(request): - facture_list = Facture.objects.order_by('pk') + facture_list = Facture.objects.order_by('date').reverse() return render(request, 'cotisations/index.html', {'facture_list': facture_list})