Prechádzať zdrojové kódy

Merge pull request #2670 from DanSheps/2666-fix-length-display

Fixes #2666: Uses correct function for displaying choices label
Jeremy Stretch 7 rokov pred
rodič
commit
24d1707693
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      netbox/dcim/tables.py

+ 1 - 1
netbox/dcim/tables.py

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