[Update] assets/gathered_user 添加过滤字段

pull/4223/head
xinwen 2020-07-01 17:21:00 +08:00
parent f40b50dddd
commit b265fad50f
1 changed files with 1 additions and 1 deletions

View File

@ -18,5 +18,5 @@ class GatheredUserViewSet(OrgModelViewSet):
permission_classes = [IsOrgAdmin]
extra_filter_backends = [AssetRelatedByNodeFilterBackend]
filter_fields = ['asset', 'username', 'present', 'asset__ip', 'asset__hostname']
filter_fields = ['asset', 'username', 'present', 'asset__ip', 'asset__hostname', 'asset_id']
search_fields = ['username', 'asset__ip', 'asset__hostname']