Fix refunds order (most recent first)

This commit is contained in:
Gabriel Augendre 2016-06-12 00:30:08 +02:00
parent eb54e8ada6
commit 3ffde84ba4
No known key found for this signature in database
GPG key ID: D2B6A5B41FC438B1

View file

@ -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.'