Просмотр исходного кода

fix: add missing parent field to inventory item import form

siku4 1 год назад
Родитель
Сommit
a12259fae7
1 измененных файлов с 1 добавлено и 1 удалено
  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',
         )