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: Make description as keyword-only arg in create_user_group.

Sahil Batra0e96a92a6d29
diff --git a/zerver/lib/user_groups.py b/zerver/lib/user_groups.py
index 44c5f09b4b1..1d0906f73a0 100644
--- a/zerver/lib/user_groups.py
+++ b/zerver/lib/user_groups.py
@@ -61,7 +61,7 @@ def remove_user_from_user_group(user_profile: UserProfile, user_group: UserGroup
def create_user_group(
- name: str, members: List[UserProfile], realm: Realm, description: str = ""
+ name: str, members: List[UserProfile], realm: Realm, *, description: str = ""
) -> UserGroup:
with transaction.atomic():
user_group = UserGroup.objects.create(name=name, realm=realm, description=description)