From 1d48dfb93b89677be70de4431964ee7184018ab7 Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 29 Mar 2021 07:23:58 +0530 Subject: [PATCH] Filter invoices by paid status --- hosting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index ac5f81de..f55c8383 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1315,7 +1315,8 @@ class InvoiceListView(LoginRequiredMixin, TemplateView): logger.debug("User does not exist") cu = self.request.user invs = stripe.Invoice.list(customer=cu.stripecustomer.stripe_id, - count=100) + count=100, + status='paid') paginator = Paginator(invs.data, 10) try: invs_page = paginator.page(page)