Unverified Commit 83d72904 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #3236 from jumpserver/dev_usergroups

[Bugfix] 修复用户组创建页面Bug
parents 82b00008 124e0425
......@@ -306,10 +306,6 @@ class UserBulkUpdateForm(OrgModelForm):
return users
def user_limit_to():
return {"orgs": current_org}
class UserGroupForm(OrgModelForm):
users = forms.ModelMultipleChoiceField(
queryset=User.objects.all(),
......@@ -321,7 +317,6 @@ class UserGroupForm(OrgModelForm):
}
),
required=False,
limit_choices_to=user_limit_to
)
def __init__(self, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment