mirror of https://github.com/zulip/zulip.git
billing_page: Directly used billing_session method get base url.
This commit is contained in:
parent
027df67fdc
commit
b8c0265d3a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue