From b4f79f1667a2cb80e6e2ad1d5b1458263df57c9a Mon Sep 17 00:00:00 2001 From: dansheps Date: Tue, 11 Dec 2018 12:40:07 -0600 Subject: [PATCH] Fixes #2666: Uses correct function for displaying choices label * Changes record.length_type to record.get_length_type_display --- netbox/dcim/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index b38a60827..ba9035d19 100644 --- a/netbox/dcim/tables.py +++ b/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 %} """