Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_groups: Remove unnecessary select_related.
Sahil Batrade5a78344a71
diff --git a/zerver/lib/user_groups.py b/zerver/lib/user_groups.pyindex 321b1fa60b8..ccc28263f14 100644--- a/zerver/lib/user_groups.py+++ b/zerver/lib/user_groups.py@@ -939,9 +939,7 @@ def get_root_id_annotated_recursive_subgroups_for_groups(def get_role_based_system_groups_dict(realm: Realm) -> dict[str, NamedUserGroup]:- system_groups = NamedUserGroup.objects.filter(- realm_for_sharding=realm, is_system_group=True- ).select_related("usergroup_ptr")+ system_groups = NamedUserGroup.objects.filter(realm_for_sharding=realm, is_system_group=True)system_groups_name_dict = {}for group in system_groups:system_groups_name_dict[group.name] = group