1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Added DeviceType to device bays table

This commit is contained in:
Jeremy Stretch
2016-07-05 13:42:14 -04:00
parent 06a38d836c
commit 7eae636562
2 changed files with 11 additions and 6 deletions

View File

@@ -520,7 +520,7 @@ def device(request, pk):
.select_related('connected_as_a', 'connected_as_b', 'circuit')
mgmt_interfaces = Interface.objects.filter(device=device, mgmt_only=True)\
.select_related('connected_as_a', 'connected_as_b', 'circuit')
device_bays = DeviceBay.objects.filter(device=device).select_related('installed_device')
device_bays = DeviceBay.objects.filter(device=device).select_related('installed_device__device_type__manufacturer')
# Gather any secrets which belong to this device
secrets = device.secrets.all()