Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
upgrade: Pass customer_name instead of realm object to upgrade context.
Aman Agrawal4844ef981081
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex 401617e88c8..4e9c6bbd654 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -1637,7 +1637,7 @@ class RealmBillingSession(BillingSession):def update_context_initial_upgrade(self, context: Dict[str, Any]) -> None:assert self.user is not Nonedata = {- "realm": self.realm,+ "customer_name": self.realm.name,"email": self.user.delivery_email,"is_demo_organization": self.realm.demo_organization_scheduled_deletion_dateis not None,diff --git a/templates/corporate/upgrade.html b/templates/corporate/upgrade.htmlindex 48399250bde..5d021145fe2 100644--- a/templates/corporate/upgrade.html+++ b/templates/corporate/upgrade.html@@ -9,7 +9,7 @@<div id="upgrade-page" class="register-account flex full-page"><div class="center-block new-style"><div class="pitch">- <h1>Upgrade {{ realm.name }} to+ <h1>Upgrade {{ customer_name }} to{% if free_trial_days %}Zulip Cloud Standard free trial{% else %}