8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-27 01:13:46 +00:00

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

This commit is contained in:
Gabriel Detraz 2016-07-05 16:19:17 +02:00
parent 209ff89b7d
commit a9c93b235b

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