From 124e0425653c35aedfba33eb642cfbb377ebe49f Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Tue, 17 Sep 2019 20:08:00 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=BB=84=E5=88=9B=E5=BB=BA=E9=A1=B5=E9=9D=A2Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/forms.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/users/forms.py b/apps/users/forms.py index 0ca3c3568..6dcd1ade4 100644 --- a/apps/users/forms.py +++ b/apps/users/forms.py @@ -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):