From b8a7870750dc911ad519ab8c0e7be3643aa92155 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 10 Nov 2020 09:22:50 -0500 Subject: [PATCH] Fix bulk editing of device components --- netbox/dcim/views.py | 2 +- netbox/templates/dcim/device.html | 47 ++++++++++++++++--------------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index d9ed6db04..da101af7f 100644 --- a/netbox/dcim/views.py +++ b/netbox/dcim/views.py @@ -1120,7 +1120,7 @@ class DeviceView(ObjectView): orderable=False ) if request.user.has_perm('dcim.change_inventoryitem') or request.user.has_perm('dcim.delete_inventoryitem'): - devicebay_table.columns.show('pk') + inventoryitem_table.columns.show('pk') # Services services = Service.objects.restrict(request.user, 'view').filter(device=device) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 82e34c861..5687bc774 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -492,20 +492,18 @@ {% include 'responsive_table.html' with table=interface_table %} {% include 'responsive_table.html' with table=frontport_table %} {% include 'responsive_table.html' with table=rearport_table %} {% include 'responsive_table.html' with table=consoleport_table %} {% include 'responsive_table.html' with table=consoleserverport_table %} {% include 'responsive_table.html' with table=powerport_table %} {% include 'responsive_table.html' with table=poweroutlet_table %} {% include 'responsive_table.html' with table=devicebay_table %} {% include 'responsive_table.html' with table=inventoryitem_table %}