Skip to content

armgit / zulip

Public Imported from GitHub
0

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.py
index 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 None
data = {
- "realm": self.realm,
+ "customer_name": self.realm.name,
"email": self.user.delivery_email,
"is_demo_organization": self.realm.demo_organization_scheduled_deletion_date
is not None,
diff --git a/templates/corporate/upgrade.html b/templates/corporate/upgrade.html
index 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 %}