Fix refunds order (most recent first)
This commit is contained in:
parent
eb54e8ada6
commit
3ffde84ba4
1 changed files with 1 additions and 1 deletions
|
@ -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.'
|
||||
|
|
Loading…
Reference in a new issue