使终端管理的应用用户不显示在用户组里

pull/1148/head
BaiJiangjie 2018-04-02 12:02:06 +08:00
parent e4c2affb5f
commit ec6103448e
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class UserGroupDetailView(AdminUserRequiredMixin, DetailView):
template_name = 'users/user_group_detail.html'
def get_context_data(self, **kwargs):
users = User.objects.exclude(id__in=self.object.users.all())
users = User.objects.exclude(id__in=self.object.users.all()).exclude(role=User.ROLE_APP)
context = {
'app': _('Users'),
'action': _('User group detail'),