Pass HostingOrder instance

This commit is contained in:
PCoder 2020-04-07 19:21:47 +05:30
parent d35403311f
commit 84c3db7e52

View file

@ -1345,7 +1345,7 @@ class InvoiceListView(LoginRequiredMixin, TemplateView):
stripe_chgs = [] stripe_chgs = []
for ho in hosting_orders: for ho in hosting_orders:
stripe_chgs.append( 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) paginator_charges = Paginator(stripe_chgs, 10)
try: try:
invs_page_charges = paginator_charges.page(page) invs_page_charges = paginator_charges.page(page)