perf: 修改资产名称

This commit is contained in:
ibuler
2022-08-11 15:45:03 +08:00
parent 4021baf758
commit d402ba5d92
44 changed files with 194 additions and 161 deletions

View File

@@ -57,7 +57,7 @@ class CommandExecution(OrgModelMixin):
@lazyproperty
def hosts_display(self):
return ','.join(self.hosts.all().values_list('hostname', flat=True))
return ','.join(self.hosts.all().values_list('name', flat=True))
@property
def result(self):
@@ -77,7 +77,7 @@ class CommandExecution(OrgModelMixin):
return True
def get_hosts_names(self):
return ','.join(self.hosts.all().values_list('hostname', flat=True))
return ','.join(self.hosts.all().values_list('name', flat=True))
def cmd_filter_rules(self, asset_id=None):
from assets.models import CommandFilterRule