Skip to content

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

Closed
@jeremystretch

Description

@jeremystretch

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

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: 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