瀏覽代碼

Fixes #2666: Uses correct function for displaying choices label

 * Changes record.length_type to record.get_length_type_display
dansheps 7 年之前
父節點
當前提交
b4f79f1667
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netbox/dcim/tables.py

+ 1 - 1
netbox/dcim/tables.py

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