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

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 = {