Order bills by creation date DESC

This commit is contained in:
Santiago L 2022-03-11 12:16:29 +01:00
parent 872243a8c6
commit 9e193107cd
1 changed files with 5 additions and 0 deletions

View File

@ -178,6 +178,11 @@ class BillingView(ServiceListView):
'title': _('Billing'),
}
def get_queryset(self):
qs = super().get_queryset()
qs = sorted(qs, key=lambda x: x.created_on, reverse=True)
return qs
class BillDownloadView(CustomContextMixin, UserTokenRequiredMixin, View):
extra_context = {