From 3967efb5f14da27561e33f078274c94174fd5ff0 Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 25 Mar 2025 08:22:53 -0700 Subject: [PATCH] 18417 review changes --- netbox/dcim/tables/racks.py | 12 ++++++------ netbox/dcim/tables/template_code.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/netbox/dcim/tables/racks.py b/netbox/dcim/tables/racks.py index d9604dc66..ee40056de 100644 --- a/netbox/dcim/tables/racks.py +++ b/netbox/dcim/tables/racks.py @@ -62,15 +62,15 @@ class RackTypeTable(NetBoxTable): template_code="{{ value }}U", verbose_name=_('Height') ) - outer_width = tables.TemplateColumn( + outer_width = columns.TemplateColumn( template_code=OUTER_UNIT, verbose_name=_('Outer Width') ) - outer_height = tables.TemplateColumn( + outer_height = columns.TemplateColumn( template_code=OUTER_UNIT, verbose_name=_('Outer Height') ) - outer_depth = tables.TemplateColumn( + outer_depth = columns.TemplateColumn( template_code=OUTER_UNIT, verbose_name=_('Outer Depth') ) @@ -163,15 +163,15 @@ class RackTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable): tags = columns.TagColumn( url_name='dcim:rack_list' ) - outer_width = tables.TemplateColumn( + outer_width = columns.TemplateColumn( template_code=OUTER_UNIT, verbose_name=_('Outer Width') ) - outer_height = tables.TemplateColumn( + outer_height = columns.TemplateColumn( template_code=OUTER_UNIT, verbose_name=_('Outer Height') ) - outer_depth = tables.TemplateColumn( + outer_depth = columns.TemplateColumn( template_code=OUTER_UNIT, verbose_name=_('Outer Depth') ) diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index 13f2589e3..225237ec4 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -111,7 +111,7 @@ LOCATION_BUTTONS = """ OUTER_UNIT = """ {% load helpers %} -{% if value %}{{ value }} {{ record.outer_unit }}{% else %}{{ ''|placeholder }}{% endif %} +{% if value %}{{ value }} {{ record.outer_unit }}{% endif %} """ #