From f2640461d80c1e918af00b0ab8ed2cbe9bdc1b17 Mon Sep 17 00:00:00 2001 From: Vishnu KS Date: Wed, 25 Mar 2020 20:20:57 +0530 Subject: [PATCH] billing: Set default value of licensed_used to 0 in /billing. This will otherwise throw error when the billing page is accessed after a plan is expired. A proper followup would be to not show licenses, licenses_used etc if the current plan is on Limited. --- corporate/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/corporate/views.py b/corporate/views.py index 6fcb60a16c..09ec197214 100644 --- a/corporate/views.py +++ b/corporate/views.py @@ -163,6 +163,7 @@ def billing_home(request: HttpRequest) -> HttpResponse: plan_name = "Zulip Free" licenses = 0 + licenses_used = 0 renewal_date = '' renewal_cents = 0 payment_method = ''