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

pull/4282/head^2
xinwen 2020-07-01 17:21:00 +08:00 committed by BaiJiangJie
parent 17a76994dc
commit 6f5a92c21f
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']