From eac62c8b86d24f564dc6005eafc05ed5a42275a6 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 26 Jul 2023 08:59:58 -0400 Subject: [PATCH] Misc cleanup --- netbox/dcim/forms/object_import.py | 3 ++- netbox/dcim/tables/devicetypes.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/forms/object_import.py b/netbox/dcim/forms/object_import.py index 6a11892a9..01efbe123 100644 --- a/netbox/dcim/forms/object_import.py +++ b/netbox/dcim/forms/object_import.py @@ -106,7 +106,8 @@ class InterfaceTemplateImportForm(ComponentTemplateImportForm): class Meta: model = InterfaceTemplate fields = [ - 'device_type', 'module_type', 'name', 'label', 'type', 'enabled', 'mgmt_only', 'description', 'poe_mode', 'poe_type', 'rf_role' + 'device_type', 'module_type', 'name', 'label', 'type', 'enabled', 'mgmt_only', 'description', 'poe_mode', + 'poe_type', 'rf_role' ] diff --git a/netbox/dcim/tables/devicetypes.py b/netbox/dcim/tables/devicetypes.py index 94815d1d9..d24ed2f13 100644 --- a/netbox/dcim/tables/devicetypes.py +++ b/netbox/dcim/tables/devicetypes.py @@ -219,7 +219,10 @@ class InterfaceTemplateTable(ComponentTemplateTable): class Meta(ComponentTemplateTable.Meta): model = models.InterfaceTemplate - fields = ('pk', 'name', 'label', 'enabled', 'mgmt_only', 'type', 'description', 'bridge', 'poe_mode', 'poe_type', 'rf_role', 'actions') + fields = ( + 'pk', 'name', 'label', 'enabled', 'mgmt_only', 'type', 'description', 'bridge', 'poe_mode', 'poe_type', + 'rf_role', 'actions', + ) empty_text = "None"