Skip to content

Device type compontent creation forms do not render #6714

@jeremystretch

Description

@jeremystretch

NetBox version

v2.11.8

Python version

3.7

Steps to Reproduce

  1. Create a device type
  2. Attempt to add any type of component (e.g. interface) to a device type

Expected Behavior

The complete component creation form should render.

Observed Behavior

The page renders, however the form is empty.

This is due to a bug in the template which attempts to iterate through form.custom_fields. For device type components, custom_fields is not set. (The exception being raised is apparently swallowed within the template rendering, so our tests never caught it.)

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions