1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #2666: Uses correct function for displaying choices label

* Changes record.length_type to record.get_length_type_display
This commit is contained in:
dansheps
2018-12-11 12:40:07 -06:00
parent b697c30941
commit b4f79f1667

View File

@ -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 %}
"""