Merge pull request #1194 from jumpserver/dev

[Bugfix] 修复资产重复的bug
pull/1204/head
老广 7 years ago committed by GitHub
commit ab2c58b626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,7 +72,7 @@ class Node(models.Model):
assets = Asset.objects.all()
else:
nodes = self.get_family()
assets = Asset.objects.filter(nodes__in=nodes)
assets = Asset.objects.filter(nodes__in=nodes).distinct()
return assets
def has_assets(self):

Loading…
Cancel
Save