mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-29 08:17:17 +00:00
[Update] 优化资产
This commit is contained in:
parent
bf9a2714d3
commit
dc4ee2f0fa
@ -78,10 +78,13 @@ class AdminUserDetailView(PermissionsMixin, DetailView):
|
|||||||
permission_classes = [IsOrgAdmin]
|
permission_classes = [IsOrgAdmin]
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
|
from ..utils import NodeUtil
|
||||||
|
nodes = Node.objects.all()
|
||||||
|
util = NodeUtil()
|
||||||
context = {
|
context = {
|
||||||
'app': _('Assets'),
|
'app': _('Assets'),
|
||||||
'action': _('Admin user detail'),
|
'action': _('Admin user detail'),
|
||||||
'nodes': Node.objects.all()
|
'nodes': util.get_nodes_by_queryset(queryset=nodes),
|
||||||
}
|
}
|
||||||
kwargs.update(context)
|
kwargs.update(context)
|
||||||
return super().get_context_data(**kwargs)
|
return super().get_context_data(**kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user