billing_page: Directly used billing_session method get base url.

This commit is contained in:
Aman Agrawal 2023-12-06 04:44:12 +00:00 committed by Tim Abbott
parent 027df67fdc
commit b8c0265d3a
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ def remote_realm_billing_page(
"admin_access": billing_session.has_billing_access(),
"has_active_plan": False,
"org_name": billing_session.remote_realm.name,
"billing_base_url": f"/realm/{realm_uuid}",
"billing_base_url": billing_session.billing_base_url,
}
if billing_session.remote_realm.plan_type == RemoteRealm.PLAN_TYPE_COMMUNITY:
@ -150,7 +150,7 @@ def remote_server_billing_page(
"admin_access": billing_session.has_billing_access(),
"has_active_plan": False,
"org_name": billing_session.remote_server.hostname,
"billing_base_url": f"/server/{billing_session.remote_server.uuid}",
"billing_base_url": billing_session.billing_base_url,
}
if billing_session.remote_server.plan_type == RemoteZulipServer.PLAN_TYPE_COMMUNITY: