Unverified Commit e212d413 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #2954 from jumpserver/dev_bai

[Bugfix] 修改资产列表数量显示的Bug
parents a884d0d5 6f2f025b
......@@ -85,7 +85,7 @@ class AssetViewSet(LabelFilter, OrgBulkModelViewSet):
queryset = queryset.filter(
nodes__key__regex='^{}(:[0-9]+)*$'.format(node.key),
)
return queryset
return queryset.distinct()
def filter_admin_user_id(self, queryset):
admin_user_id = self.request.query_params.get('admin_user_id')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment