From c8f82c23afabf36d4dbcbf135e9be17476fd6910 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 19 Mar 2025 09:34:08 -0400 Subject: [PATCH] Update netbox/dcim/forms/bulk_import.py --- netbox/dcim/forms/bulk_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/forms/bulk_import.py b/netbox/dcim/forms/bulk_import.py index d7b7d7d47..cb36e94bf 100644 --- a/netbox/dcim/forms/bulk_import.py +++ b/netbox/dcim/forms/bulk_import.py @@ -1164,8 +1164,8 @@ class InventoryItemImportForm(NetBoxModelImportForm): def clean(self): super().clean() cleaned_data = self.cleaned_data - component_type = cleaned_data.get('component_type', None) - component_name = cleaned_data.get('component_name', None) + component_type = cleaned_data.get('component_type') + component_name = cleaned_data.get('component_name') device = self.cleaned_data.get("device") if component_type: