Jeremy Stretch 7 лет назад
Родитель
Сommit
b8a4316297
2 измененных файлов с 9 добавлено и 1 удалено
  1. 8 0
      CHANGELOG.md
  2. 1 1
      netbox/dcim/tables.py

+ 8 - 0
CHANGELOG.md

@@ -1,3 +1,11 @@
+v2.5.1 (FUTURE)
+
+## Bug Fixes
+
+* [#2666](https://github.com/digitalocean/netbox/issues/2666) - Correct display of length unit in cables list
+
+---
+
 v2.5.0 (2018-12-10)
 
 ## Notes

+ 1 - 1
netbox/dcim/tables.py

@@ -179,7 +179,7 @@ CABLE_TERMINATION_PARENT = """
 """
 
 CABLE_LENGTH = """
-{% if record.length %}{{ record.length }}{{ record.get_length_unit_display }}{% else %}—{% endif %}
+{% if record.length %}{{ record.length }} {{ record.get_length_unit_display }}{% else %}—{% endif %}
 """