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.

user_groups: Use update_fields when saving permission setting.

Jaimin2687827629561911
diff --git a/zerver/actions/user_groups.py b/zerver/actions/user_groups.py
index 9edda5e2bb7..a6ad7113e20 100644
--- a/zerver/actions/user_groups.py
+++ b/zerver/actions/user_groups.py
@@ -755,7 +755,7 @@ def do_change_user_group_permission_setting(
) -> None:
old_value = getattr(user_group, setting_name)
setattr(user_group, setting_name, setting_value_group)
- user_group.save()
+ user_group.save(update_fields=[setting_name])
if old_setting_api_value is None:
# Most production callers will have computed this as part of