diff --git a/netbox/dcim/tables/racks.py b/netbox/dcim/tables/racks.py index d83f25a5f..39553bac0 100644 --- a/netbox/dcim/tables/racks.py +++ b/netbox/dcim/tables/racks.py @@ -51,7 +51,7 @@ class RackTable(TenancyColumnsMixin, NetBoxTable): status = columns.ChoiceFieldColumn() role = columns.ColoredLabelColumn() u_height = tables.TemplateColumn( - template_code="{{ record.u_height }}U", + template_code="{{ value }}U", verbose_name='Height' ) comments = columns.MarkdownColumn() diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index eeb0504d6..d34003ee5 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -33,7 +33,7 @@ DEVICEBAY_STATUS = """ INTERFACE_IPADDRESSES = """
- {% for ip in record.ip_addresses.all %} + {% for ip in value.all %} {% if ip.status != 'active' %} {{ ip }} {% else %} @@ -53,7 +53,7 @@ INTERFACE_FHRPGROUPS = """ INTERFACE_TAGGED_VLANS = """ {% if record.mode == 'tagged' %} - {% for vlan in record.tagged_vlans.all %} + {% for vlan in value.all %} {{ vlan }}
{% endfor %} {% elif record.mode == 'tagged-all' %} @@ -62,7 +62,7 @@ INTERFACE_TAGGED_VLANS = """ """ INTERFACE_WIRELESS_LANS = """ -{% for wlan in record.wireless_lans.all %} +{% for wlan in value.all %} {{ wlan }}
{% endfor %} """ diff --git a/netbox/extras/tables/template_code.py b/netbox/extras/tables/template_code.py index 7f5bc8a73..2c6248469 100644 --- a/netbox/extras/tables/template_code.py +++ b/netbox/extras/tables/template_code.py @@ -9,7 +9,7 @@ CONFIGCONTEXT_ACTIONS = """ OBJECTCHANGE_FULL_NAME = """ {% load helpers %} -{{ record.user.get_full_name|placeholder }} +{{ value.get_full_name|placeholder }} """ OBJECTCHANGE_OBJECT = """ diff --git a/netbox/ipam/tables/fhrp.py b/netbox/ipam/tables/fhrp.py index f5b89f851..f709bfeb2 100644 --- a/netbox/ipam/tables/fhrp.py +++ b/netbox/ipam/tables/fhrp.py @@ -10,7 +10,7 @@ __all__ = ( IPADDRESSES = """ -{% for ip in record.ip_addresses.all %} +{% for ip in value.all %} {{ ip }}
{% endfor %} """ diff --git a/netbox/ipam/tables/ip.py b/netbox/ipam/tables/ip.py index 82f4686c0..f3c45ec1d 100644 --- a/netbox/ipam/tables/ip.py +++ b/netbox/ipam/tables/ip.py @@ -47,7 +47,7 @@ IPADDRESS_ASSIGN_LINK = """ """ VRF_LINK = """ -{% if record.vrf %} +{% if value %} {{ record.vrf }} {% elif object.vrf %} {{ object.vrf }} diff --git a/netbox/ipam/tables/vlans.py b/netbox/ipam/tables/vlans.py index 7878de507..00c215344 100644 --- a/netbox/ipam/tables/vlans.py +++ b/netbox/ipam/tables/vlans.py @@ -30,7 +30,7 @@ VLAN_LINK = """ """ VLAN_PREFIXES = """ -{% for prefix in record.prefixes.all %} +{% for prefix in value.all %} {{ prefix }}{% if not forloop.last %}
{% endif %} {% endfor %} """ diff --git a/netbox/virtualization/tables/virtualmachines.py b/netbox/virtualization/tables/virtualmachines.py index 22238a1b6..8ee19942b 100644 --- a/netbox/virtualization/tables/virtualmachines.py +++ b/netbox/virtualization/tables/virtualmachines.py @@ -12,7 +12,7 @@ __all__ = ( ) VMINTERFACE_BUTTONS = """ -{% if perms.virtualization.edit_vminterface %} +{% if perms.virtualization.change_vminterface %}