|
|
@ -306,10 +306,6 @@ class UserBulkUpdateForm(OrgModelForm):
|
|
|
|
return users
|
|
|
|
return users
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def user_limit_to():
|
|
|
|
|
|
|
|
return {"orgs": current_org}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UserGroupForm(OrgModelForm):
|
|
|
|
class UserGroupForm(OrgModelForm):
|
|
|
|
users = forms.ModelMultipleChoiceField(
|
|
|
|
users = forms.ModelMultipleChoiceField(
|
|
|
|
queryset=User.objects.all(),
|
|
|
|
queryset=User.objects.all(),
|
|
|
@ -321,7 +317,6 @@ class UserGroupForm(OrgModelForm):
|
|
|
|
}
|
|
|
|
}
|
|
|
|
),
|
|
|
|
),
|
|
|
|
required=False,
|
|
|
|
required=False,
|
|
|
|
limit_choices_to=user_limit_to
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|