Преглед изворни кода

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 недеља
родитељ
комит
fdb987ef91
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      netbox/dcim/ui/panels.py

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