Ver Fonte

fix: add missing parent field to inventory item import form

siku4 há 1 ano atrás
pai
commit
a12259fae7
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      netbox/dcim/forms/bulk_import.py

+ 1 - 1
netbox/dcim/forms/bulk_import.py

@@ -1046,7 +1046,7 @@ class InventoryItemImportForm(NetBoxModelImportForm):
     class Meta:
         model = InventoryItem
         fields = (
-            'device', 'name', 'label', 'role', 'manufacturer', 'part_id', 'serial', 'asset_tag', 'discovered',
+            'device', 'name', 'label', 'role', 'manufacturer', 'parent', 'part_id', 'serial', 'asset_tag', 'discovered',
             'description', 'tags', 'component_type', 'component_name',
         )