Order bills by creation date DESC
This commit is contained in:
parent
872243a8c6
commit
9e193107cd
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue