Paginate invoice list view by 10 items on each page

This commit is contained in:
PCoder 2019-04-05 00:09:52 +02:00
parent 5987962414
commit 92b2504f1e
1 changed files with 1 additions and 0 deletions

View File

@ -1162,6 +1162,7 @@ class InvoiceListView(LoginRequiredMixin, ListView):
login_url = reverse_lazy('hosting:login')
context_object_name = "invoices"
model = MonthlyHostingBill
paginate_by = 10
ordering = '-created'
def get_context_data(self, **kwargs):