提交 ec610344 编写于 作者: B BaiJiangjie

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

上级 e4c2affb
......@@ -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'),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册