"base_choices" is not working in custom field choice bulk import #11020

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

Originally created by @jordihelp on GitHub (Apr 14, 2025).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.2.6

Python Version

3.11

Steps to Reproduce

  1. Click in "Bulk import" in "Custom Field Choices"
  2. Set data to:
---
name: Choices
description: 
order_alphabetically: False
base_choices: ISO_3166
extra_choices: 
  1. Set format to YAML
  2. Click "Submit" button

Expected Behavior

A new custom field choice should have been created with the selected base choices.

Observed Behavior

An error "Must define base or extra choices" was raised

Originally created by @jordihelp on GitHub (Apr 14, 2025). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.2.6 ### Python Version 3.11 ### Steps to Reproduce 1. Click in "Bulk import" in "Custom Field Choices" 2. Set data to: ``` --- name: Choices description: order_alphabetically: False base_choices: ISO_3166 extra_choices: ``` 3. Set format to `YAML` 4. Click "Submit" button ### Expected Behavior A new custom field choice should have been created with the selected base choices. ### Observed Behavior An error "Must define base or extra choices" was raised
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:39:15 +01:00
adam closed this issue 2025-12-29 21:39:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11020