From 3ffde84ba4242b1e76fc102b6c2b8b589e95f164 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 12 Jun 2016 00:30:08 +0200 Subject: [PATCH] Fix refunds order (most recent first) --- refunding/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refunding/views.py b/refunding/views.py index 65bc1e4..87b93ad 100644 --- a/refunding/views.py +++ b/refunding/views.py @@ -13,7 +13,7 @@ from refunding.models import Payment, Refund @login_required def latest_refunds(request): - refunds = Refund.objects.all().order_by('date')[:20] + refunds = Refund.objects.all().order_by('-date')[:20] context = { 'refunds': refunds, 'default_nothing': 'No refund to show.'