Device type compontent creation forms do not render #5050

Closed
opened 2025-12-29 19:23:33 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Jul 7, 2021).

Originally assigned to: @jeremystretch on GitHub.

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.)

Originally created by @jeremystretch on GitHub (Jul 7, 2021). Originally assigned to: @jeremystretch on GitHub. ### 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.)
adam added the type: bugstatus: accepted labels 2025-12-29 19:23:33 +01:00
adam closed this issue 2025-12-29 19:23:33 +01:00
Author
Owner

@mabroze commented on GitHub (Jul 8, 2021):

Confirmed fixed in 2.11.9. Thanks for the quick resolution and your commitment to NetBox in general @jeremystretch @candlerb. Hope I'll be able to contribute in a meaningful way myself in the future.

@mabroze commented on GitHub (Jul 8, 2021): Confirmed fixed in 2.11.9. Thanks for the quick resolution and your commitment to NetBox in general @jeremystretch @candlerb. Hope I'll be able to contribute in a meaningful way myself in the future.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5050