Do not update ho -> doing so, crashes

This commit is contained in:
PCoder 2020-04-10 18:44:45 +05:30
parent 8443e03b1f
commit a395b7a4a6

View file

@ -1344,8 +1344,6 @@ class InvoiceListView(LoginRequiredMixin, TemplateView):
)
stripe_chgs = []
for ho in hosting_orders:
ho.generic_product.product_name = ho.generic_product.product_name.capitalize()
ho.created = ho.created.strftime('%Y-%m-%d')
stripe_chgs.append(
{ho: stripe.Charge.retrieve(ho.stripe_charge_id)})
paginator_charges = Paginator(stripe_chgs, 10)