Merge pull request #2954 from jumpserver/dev_bai

[Bugfix] 修改资产列表数量显示的Bug
pull/2956/head
BaiJiangJie 5 years ago committed by GitHub
commit e212d413dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save