netbox-inventory
netbox-inventory copied to clipboard
InventoryItemGroup tree broken after bulk edit setting parent
Bulk edit more than one InventoryItemGroup and set parent. The tree is messed-up after this operation. parent attribute is set correctly, but level and possibly lft and rght are wrong.
InventoryItemGroup.objects.rebuild()
fixes it.
Tying the same operation on SiteGroup for example works fine.