From a8576e54c72cb3ea5c11d6b683edc387ddff0043 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Wed, 17 Aug 2022 10:30:35 -0400 Subject: [PATCH] Optimize database queries --- netbox/dcim/tables/template_code.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index cc2cc4c84..6e9ed6672 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -101,7 +101,7 @@ MODULAR_COMPONENT_TEMPLATE_BUTTONS = """ CONSOLEPORT_BUTTONS = """ {% if perms.dcim.add_inventoryitem %} - + {% endif %} @@ -133,7 +133,7 @@ CONSOLEPORT_BUTTONS = """ CONSOLESERVERPORT_BUTTONS = """ {% if perms.dcim.add_inventoryitem %} - + {% endif %} @@ -165,7 +165,7 @@ CONSOLESERVERPORT_BUTTONS = """ POWERPORT_BUTTONS = """ {% if perms.dcim.add_inventoryitem %} - + {% endif %} @@ -196,7 +196,7 @@ POWERPORT_BUTTONS = """ POWEROUTLET_BUTTONS = """ {% if perms.dcim.add_inventoryitem %} - + {% endif %} @@ -232,7 +232,7 @@ INTERFACE_BUTTONS = """
  • IP Address
  • {% endif %} {% if perms.dcim.add_inventoryitem %} -
  • Inventory Item
  • +
  • Inventory Item
  • {% endif %} @@ -272,7 +272,7 @@ INTERFACE_BUTTONS = """ {% endif %} {% elif record.is_wireless and perms.wireless.add_wirelesslink %} - + {% endif %} @@ -280,7 +280,7 @@ INTERFACE_BUTTONS = """ FRONTPORT_BUTTONS = """ {% if perms.dcim.add_inventoryitem %} - + {% endif %} @@ -317,7 +317,7 @@ FRONTPORT_BUTTONS = """ REARPORT_BUTTONS = """ {% if perms.dcim.add_inventoryitem %} - + {% endif %} @@ -373,7 +373,7 @@ MODULEBAY_BUTTONS = """ {% else %} - + {% endif %}