From a395b7a4a6c7df3dde01f5c386118bb2b5d36689 Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 10 Apr 2020 18:44:45 +0530 Subject: [PATCH] Do not update ho -> doing so, crashes --- hosting/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hosting/views.py b/hosting/views.py index 96bff53b..eac81d66 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -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)