Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed device creation on types with nested inventory #9007

Closed
tomwoodcraft opened this issue Mar 31, 2022 · 0 comments
Closed

Failed device creation on types with nested inventory #9007

tomwoodcraft opened this issue Mar 31, 2022 · 0 comments
Assignees
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@tomwoodcraft
Copy link

tomwoodcraft commented Mar 31, 2022

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

@tomwoodcraft tomwoodcraft added the type: bug A confirmed report of unexpected behavior in the application label Mar 31, 2022
@jeremystretch jeremystretch added beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation labels Mar 31, 2022
@jeremystretch jeremystretch self-assigned this Mar 31, 2022
jeremystretch added a commit that referenced this issue Mar 31, 2022
This was referenced Apr 5, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants