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