From 4844ef981081132a35ceb0e58a15a0e8c2fd5f3b Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Fri, 24 Nov 2023 04:44:15 +0000 Subject: [PATCH] upgrade: Pass customer_name instead of realm object to upgrade context. This will help simplify things for remote realms. --- corporate/lib/stripe.py | 2 +- templates/corporate/upgrade.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py index 401617e88c..4e9c6bbd65 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 48399250bd..5d021145fe 100644 --- a/templates/corporate/upgrade.html +++ b/templates/corporate/upgrade.html @@ -9,7 +9,7 @@
-

Upgrade {{ realm.name }} to +

Upgrade {{ customer_name }} to {% if free_trial_days %} Zulip Cloud Standard free trial {% else %}