Update netbox/dcim/forms/bulk_import.py

This commit is contained in:
Jeremy Stretch 2025-03-19 09:34:08 -04:00 committed by GitHub
parent d327147ccf
commit c8f82c23af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: