- {{ho.generic_product.product_name.capitalize()}} |
- {{ho.created_at.strftime('%Y-%m-%d')}} |
+ {{ho.generic_product.product_name}} |
+ {{ho.created_at}} |
{{ho.price}} |
{% trans "See Invoice" %}
diff --git a/hosting/views.py b/hosting/views.py
index eac81d66..96bff53b 100644
--- a/hosting/views.py
+++ b/hosting/views.py
@@ -1344,6 +1344,8 @@ 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)
|