Update asset.py

pull/10819/head
nut 2023-06-26 23:51:59 +08:00 committed by GitHub
parent d7d554daf5
commit 358b3a1891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()