Skip to content

Conversation

@padthaitofuhot
Copy link
Contributor

…es #15598.

Fixes: #15598

In 32264ac _instantiate_components() was refactored to ensure all custom fields are initialized with default values. Unfortunately that change broke the separation of singleton and bulk_create behaviors which led to issue #15598. This PR refactors _instantiate_components() to recover that separation while retaining custom field default value initialization.

@padthaitofuhot padthaitofuhot marked this pull request as draft April 3, 2024 16:14
@padthaitofuhot padthaitofuhot marked this pull request as ready for review April 3, 2024 19:00
@jeremystretch jeremystretch merged commit 3b3511c into netbox-community:develop Apr 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2024
@padthaitofuhot padthaitofuhot deleted the bugfix-15598-Fix-InventoryItem-BulkCreate branch May 24, 2024 04:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After upgrade from 3.5 to 3.7, instantiating a DeviceType which contains nested InventoryItems throws "InventoryItem matching query does not exist"

2 participants