mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 19:36:26 -06:00
Update netbox/dcim/forms/bulk_import.py
This commit is contained in:
parent
d327147ccf
commit
c8f82c23af
@ -1164,8 +1164,8 @@ class InventoryItemImportForm(NetBoxModelImportForm):
|
|||||||
def clean(self):
|
def clean(self):
|
||||||
super().clean()
|
super().clean()
|
||||||
cleaned_data = self.cleaned_data
|
cleaned_data = self.cleaned_data
|
||||||
component_type = cleaned_data.get('component_type', None)
|
component_type = cleaned_data.get('component_type')
|
||||||
component_name = cleaned_data.get('component_name', None)
|
component_name = cleaned_data.get('component_name')
|
||||||
device = self.cleaned_data.get("device")
|
device = self.cleaned_data.get("device")
|
||||||
|
|
||||||
if component_type:
|
if component_type:
|
||||||
|
Loading…
Reference in New Issue
Block a user