mirror of https://github.com/jumpserver/jumpserver
Update asset.py
parent
d7d554daf5
commit
358b3a1891
|
@ -123,7 +123,7 @@ class AssetViewSet(SuggestionMixin, NodeFilterMixin, OrgBulkModelViewSet):
|
|||
|
||||
def get_queryset(self):
|
||||
return super().get_queryset().prefetch_related('nodes', 'protocols')\
|
||||
.select_related('platform', 'domain', 'host')
|
||||
.select_related('platform', 'domain')
|
||||
|
||||
def get_serializer_class(self):
|
||||
cls = super().get_serializer_class()
|
||||
|
|
Loading…
Reference in New Issue