From 84c3db7e52cb097ffb85500d9a8ab4cb2be71def Mon Sep 17 00:00:00 2001 From: PCoder Date: Tue, 7 Apr 2020 19:21:47 +0530 Subject: [PATCH] Pass HostingOrder instance --- hosting/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index 29e9644a..eac81d66 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1345,7 +1345,7 @@ class InvoiceListView(LoginRequiredMixin, TemplateView): stripe_chgs = [] for ho in hosting_orders: stripe_chgs.append( - {ho.id: stripe.Charge.retrieve(ho.stripe_charge_id)}) + {ho: stripe.Charge.retrieve(ho.stripe_charge_id)}) paginator_charges = Paginator(stripe_chgs, 10) try: invs_page_charges = paginator_charges.page(page)