fixed display bug installations detail, merged device/vm columns and added type for installations table view

This commit is contained in:
Hedde van der Heide
2022-03-24 11:15:53 +01:00
parent bf63046edb
commit 51736942e7
7 changed files with 26 additions and 15 deletions
+12 -4
View File
@@ -91,6 +91,11 @@ class SoftwareProductInstallationTable(BaseTable):
accessor=Accessor('virtualmachine'),
linkify=True
)
platform = tables.Column(
accessor='get_platform',
linkify=True
)
type = tables.Column(accessor='render_type')
software_product = tables.Column(
accessor=Accessor('software_product'),
linkify=True
@@ -109,17 +114,20 @@ class SoftwareProductInstallationTable(BaseTable):
fields = (
"pk",
"name",
"device",
"virtualmachine",
"platform",
"type",
"software_product",
"version",
# "tags",
)
default_columns = (
"pk",
"device",
"virtualmachine",
"platform",
"type",
"software_product",
"version",
# "tags",
)
def render_software_product(self, value, **kwargs):
return f"{kwargs['record'].software_product.manufacturer.name} - {value}"