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 d1cd366dc9
commit a3ade01224
4 changed files with 6 additions and 5 deletions

View File

@@ -31,7 +31,7 @@
</h4>
{{ cable.get_status_display }}<br />
{{ cable.get_type_display|default:"" }}
{% if cable.length %}- {{ cable.length }}{{ cable.length_unit }}{% endif %}
{% if cable.length %}- {{ cable.length }}{{ cable.get_length_unit_display }}{% endif %}
<span class="label color-block center-block" style="background-color: #{{ cable.color }}">&nbsp;</span>
{% else %}
<h4 class="text-muted">No Cable</h4>