From 7fded2fd87c92a6a5b75e7ddef28474adfee0f7f Mon Sep 17 00:00:00 2001 From: Martin Hauser Date: Thu, 15 Jan 2026 18:52:25 +0100 Subject: [PATCH] fix(dcim): Add spacing in mounting depth format string Corrects the format string for mounting depth to include a space between the value and the unit (`mm`) for consistency with other measurements. Fixes #21178 --- netbox/dcim/ui/panels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/ui/panels.py b/netbox/dcim/ui/panels.py index 87ceb9c4a..a47ae3d2b 100644 --- a/netbox/dcim/ui/panels.py +++ b/netbox/dcim/ui/panels.py @@ -31,7 +31,7 @@ class RackDimensionsPanel(panels.ObjectAttributesPanel): outer_width = attrs.NumericAttr('outer_width', unit_accessor='get_outer_unit_display') outer_height = attrs.NumericAttr('outer_height', unit_accessor='get_outer_unit_display') outer_depth = attrs.NumericAttr('outer_depth', unit_accessor='get_outer_unit_display') - mounting_depth = attrs.TextAttr('mounting_depth', format_string='{}mm') + mounting_depth = attrs.TextAttr('mounting_depth', format_string='{} mm') class RackNumberingPanel(panels.ObjectAttributesPanel):