Fixes #2639: Fix preservation of length/dimensions unit for racks and cables

This commit is contained in:
Jeremy Stretch
2018-12-03 11:13:37 -05:00
parent 4846b11083
commit 7f5627754b
4 changed files with 6 additions and 5 deletions

View File

@@ -158,7 +158,7 @@
<td>Outer Width</td>
<td>
{% if rack.outer_width %}
<span>{{ rack.outer_width }}{{ rack.outer_unit }}</span>
<span>{{ rack.outer_width }} {{ rack.get_outer_unit_display }}</span>
{% else %}
<span class="text-muted">&mdash;</span>
{% endif %}
@@ -168,7 +168,7 @@
<td>Outer Depth</td>
<td>
{% if rack.outer_depth %}
<span>{{ rack.outer_depth }}{{ rack.outer_unit }}</span>
<span>{{ rack.outer_depth }} {{ rack.get_outer_unit_display }}</span>
{% else %}
<span class="text-muted">&mdash;</span>
{% endif %}