mirror of https://github.com/zulip/zulip.git
support: Display remote realm is deactivated fields.
Also updates populate_billing_realms to not locally deactivate test remote realms when generating them.
This commit is contained in:
parent
434b67caf5
commit
b4b44e5558
|
@ -1,6 +1,15 @@
|
|||
<div class="remote-realm-information">
|
||||
<span class="label">remote realm</span>
|
||||
<h3>{{ remote_realm.name }}</h3>
|
||||
{% if remote_realm.realm_locally_deleted %}
|
||||
<h4>Remote realm is locally deleted 🛑</h4>
|
||||
{% endif %}
|
||||
{% if remote_realm.registration_deactivated %}
|
||||
<h4>Remote realm registration deactivated 🛑</h4>
|
||||
{% endif %}
|
||||
{% if remote_realm.realm_deactivated %}
|
||||
<h4>Remote realm is deactivated on remote server 🛑</h4>
|
||||
{% endif %}
|
||||
{% if remote_realm.plan_type == SPONSORED_PLAN_TYPE %}
|
||||
<h4>On 100% sponsored Zulip Community plan 🎉</h4>
|
||||
{% endif %}
|
||||
|
|
|
@ -497,9 +497,7 @@ def populate_remote_realms(customer_profile: CustomerProfile) -> Dict[str, str]:
|
|||
if remote_server is None:
|
||||
raise AssertionError("Remote server not found! Please run manage.py register_server")
|
||||
|
||||
update_remote_realm_data_for_server(
|
||||
remote_server, get_realms_info_for_push_bouncer(local_realm.id)
|
||||
)
|
||||
update_remote_realm_data_for_server(remote_server, get_realms_info_for_push_bouncer())
|
||||
|
||||
remote_realm = RemoteRealm.objects.get(uuid=local_realm.uuid)
|
||||
user = UserProfile.objects.filter(realm=local_realm).first()
|
||||
|
|
Loading…
Reference in New Issue