8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-26 08:53:46 +00:00

Classe par date du plus récent au plus ancien pour les cotiz

This commit is contained in:
chirac 2016-07-05 16:19:17 +02:00
parent 19cf3b4f83
commit 20218f0bfd

View file

@ -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})