2
0
Эх сурвалжийг харах

Merge pull request #21183 from netbox-community/21178-change-rack-dimensions-display-to-be-more-consistent

Fixes #21178: Add spacing in mounting depth format string
bctiemann 4 долоо хоног өмнө
parent
commit
fdb987ef91

+ 1 - 1
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):