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.
This commit is contained in:
Vishnu KS 2020-03-25 20:20:57 +05:30 committed by Tim Abbott
parent 8b24d40585
commit f2640461d8
1 changed files with 1 additions and 0 deletions

View File

@ -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 = ''