|
|
@ -116,8 +116,7 @@ class UserDetailView(AdminUserRequiredMixin, DetailView):
|
|
|
|
context_object_name = "user"
|
|
|
|
context_object_name = "user"
|
|
|
|
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
groups = [
|
|
|
|
groups = [group for group in UserGroup.objects.iterator() if group not in self.object.groups.iterator()]
|
|
|
|
group for group in UserGroup.objects.iterator() if group not in self.object.groups.iterator()]
|
|
|
|
|
|
|
|
context = {'app': _('Users'), 'action': _('User detail'), 'groups': groups}
|
|
|
|
context = {'app': _('Users'), 'action': _('User detail'), 'groups': groups}
|
|
|
|
kwargs.update(context)
|
|
|
|
kwargs.update(context)
|
|
|
|
return super(UserDetailView, self).get_context_data(**kwargs)
|
|
|
|
return super(UserDetailView, self).get_context_data(**kwargs)
|
|
|
|