Skip to content

Cannot add a new custom field of type selection/multiple selection list #13682

@DanSheps

Description

@DanSheps

NetBox version

v3.6.0

Python version

3.9

Steps to Reproduce

  1. Add a choice field set named Test with the following choices:
    test,Test
    tester,Tester
    testing,Testing
    
  2. Add a custom field
    a. Name: Test
    b: Object: Circuits
    c: Type: Multiple Selection (Selection also has an issue)
    d: Required: True
    e: Default: "test"
    f: Choice Set: Test
  3. Save

Expected Behavior

Custom Field Saves

Observed Behavior

AttributeError: 'CustomField' object has no attribute 'message'

Nested Exception:
ValidationError: Invalid choice(s) (t, e, s, t). Available choices are:

Alternatively, if default is set to "", the nested exception is:

ValidationError: 'Required field cannot be empty.'

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