Failed device creation on types with nested inventory #6277

Closed
opened 2025-12-29 19:38:51 +01:00 by adam · 0 comments
Owner

Originally created by @tomwoodcraft on GitHub (Mar 31, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.0 beta2

Python version

3.9

Steps to Reproduce

Can be reproduced on the beta demo

  1. Create a device type
  2. Add an inventory item to the type
  3. Add a second inventory item that's a child of the first inventory item
  4. Try to create a device using that device type

You will get the following error:

<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword 'device' into field. Choices are: _name, child_items, component, component_id, component_type, component_type_id, created, description, device_type, device_type_id, id, label, last_updated, level, lft, manufacturer, manufacturer_id, name, parent, parent_id, part_id, rght, role, role_id, tree_id

Python version: 3.8.10
NetBox version: 3.2.0-beta2

Expected Behavior

When I have a device type with nested inventory, I can create a device from that type

Observed Behavior

A FieldError exception was raised

Originally created by @tomwoodcraft on GitHub (Mar 31, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.0 beta2 ### Python version 3.9 ### Steps to Reproduce Can be reproduced on the beta demo 1. Create a device type 2. Add an inventory item to the type 3. Add a second inventory item that's a child of the first inventory item 4. Try to create a device using that device type You will get the following error: <class 'django.core.exceptions.FieldError'> Cannot resolve keyword 'device' into field. Choices are: _name, child_items, component, component_id, component_type, component_type_id, created, description, device_type, device_type_id, id, label, last_updated, level, lft, manufacturer, manufacturer_id, name, parent, parent_id, part_id, rght, role, role_id, tree_id Python version: 3.8.10 NetBox version: 3.2.0-beta2 ### Expected Behavior When I have a device type with nested inventory, I can create a device from that type ### Observed Behavior A FieldError exception was raised
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 19:38:51 +01:00
adam closed this issue 2025-12-29 19:38:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6277