Commit ec610344 authored by BaiJiangjie's avatar BaiJiangjie

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

parent e4c2affb
...@@ -74,7 +74,7 @@ class UserGroupDetailView(AdminUserRequiredMixin, DetailView): ...@@ -74,7 +74,7 @@ class UserGroupDetailView(AdminUserRequiredMixin, DetailView):
template_name = 'users/user_group_detail.html' template_name = 'users/user_group_detail.html'
def get_context_data(self, **kwargs): 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 = { context = {
'app': _('Users'), 'app': _('Users'),
'action': _('User group detail'), 'action': _('User group detail'),
......
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