Skip to content

Commit

Permalink
Add missing description & comment fields for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSheps committed Sep 18, 2024
1 parent 3b0c3f5 commit 6c0ff2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions netbox_lifecycle/tables/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SupportSKUTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = SupportSKU
fields = (
'pk', 'manufacturer', 'sku'
'pk', 'manufacturer', 'sku', 'description', 'comments',
)
default_columns = (
'pk', 'manufacturer', 'sku',
Expand All @@ -50,7 +50,7 @@ class SupportContractTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = SupportContract
fields = (
'pk', 'contract_id', 'start', 'renewal', 'end'
'pk', 'contract_id', 'start', 'renewal', 'end', 'description', 'comments',
)
default_columns = (
'pk', 'contract_id',
Expand Down Expand Up @@ -112,7 +112,7 @@ class Meta(NetBoxTable.Meta):
model = SupportContractAssignment
fields = (
'pk', 'contract', 'sku', 'device_name', 'license_name', 'device_model', 'device_serial', 'quantity',
'renewal', 'end'
'renewal', 'end', 'description', 'comments',
)
default_columns = (
'pk', 'contract', 'sku', 'device_name', 'license_name', 'device_model', 'device_serial'
Expand Down
3 changes: 2 additions & 1 deletion netbox_lifecycle/tables/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class HardwareLifecycleTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = HardwareLifecycle
fields = (
'pk', 'name', 'assigned_object', 'end_of_sale', 'end_of_maintenance', 'end_of_security', 'end_of_support'
'pk', 'name', 'assigned_object', 'end_of_sale', 'end_of_maintenance', 'end_of_security', 'end_of_support',
'description', 'comments',
)
default_columns = (
'pk', 'name', 'assigned_object', 'end_of_sale', 'end_of_maintenance'
Expand Down
4 changes: 2 additions & 2 deletions netbox_lifecycle/tables/license.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class LicenseTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = License
fields = (
'pk', 'name',
'pk', 'name', 'description', 'comments',
)
default_columns = (
'pk', 'name',
Expand All @@ -43,7 +43,7 @@ class LicenseAssignmentTable(NetBoxTable):
class Meta(NetBoxTable.Meta):
model = LicenseAssignment
fields = (
'pk', 'license', 'vendor', 'device', 'quantity'
'pk', 'license', 'vendor', 'device', 'quantity', 'description', 'comments',
)
default_columns = (
'pk', 'license', 'vendor', 'device'
Expand Down

0 comments on commit 6c0ff2f

Please sign in to comment.