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.

corporate: Pass only the org-type name to the communities template.

Prakhar Pratyushc9c5e8dc2d48
diff --git a/corporate/views/portico.py b/corporate/views/portico.py
index 2ad563a4cc3..4687fb11151 100644
--- a/corporate/views/portico.py
+++ b/corporate/views/portico.py
@@ -372,8 +372,9 @@ def communities_view(request: HttpRequest) -> HttpResponse:
# Remove org_types for which there are no open organizations.
org_types = dict()
for org_type in CATEGORIES_TO_OFFER:
- if Realm.ORG_TYPES[org_type]["id"] in unique_org_type_ids:
- org_types[org_type] = Realm.ORG_TYPES[org_type]
+ org_type_info = Realm.ORG_TYPES[org_type]
+ if org_type_info["id"] in unique_org_type_ids:
+ org_types[org_type] = {"name": org_type_info["name"]}
# This code is not required right now, but could be useful in the
# future if we ever decide to show all the ORG_TYPES.