ValueError exception when attempting to create an object-type custom field without selecting the related model #10076

Closed
opened 2025-12-29 21:26:33 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Aug 12, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

NetBox Cloud

NetBox Version

v4.0.8

Python Version

3.10

Steps to Reproduce

  1. Attempt to create a custom field (for any model) of type "object" without specifying the related object type.

Expected Behavior

The form should return a validation error message on submission.

Observed Behavior

An unhandled ValueError exception is raised: 'CustomFieldForm' has no field named 'object_type'.

Originally created by @jeremystretch on GitHub (Aug 12, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type NetBox Cloud ### NetBox Version v4.0.8 ### Python Version 3.10 ### Steps to Reproduce 1. Attempt to create a custom field (for any model) of type "object" without specifying the related object type. ### Expected Behavior The form should return a validation error message on submission. ### Observed Behavior An unhandled `ValueError` exception is raised: `'CustomFieldForm' has no field named 'object_type'.`
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:26:33 +01:00
adam closed this issue 2025-12-29 21:26:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10076