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

Fixes #15067: Fix uncaught exception when attempting invalid device bay import

This commit is contained in:
Jeremy Stretch
2024-02-13 10:20:26 -05:00
parent 12d830bcf2
commit 01fa2710eb
2 changed files with 3 additions and 3 deletions

View File

@@ -996,7 +996,7 @@ class DeviceBayImportForm(NetBoxModelImportForm):
device_type__subdevice_role=SubdeviceRoleChoices.ROLE_CHILD
).exclude(pk=device.pk)
else:
self.fields['installed_device'].queryset = Interface.objects.none()
self.fields['installed_device'].queryset = Device.objects.none()
class InventoryItemImportForm(NetBoxModelImportForm):