[PR #5440] [CLOSED] Adds support for multi select custom fields #13018

Closed
opened 2025-12-29 22:24:57 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/5440
Author: @TomGrozev
Created: 12/11/2020
Status: Closed

Base: develop-2.10Head: develop-2.10


📝 Commits (1)

  • 3c75f6e Adds support for multi select custom fields

📊 Changes

5 files changed (+61 additions, -8 deletions)

View changed files

📝 docs/release-notes/version-2.10.md (+1 -0)
📝 netbox/extras/admin.py (+1 -1)
📝 netbox/extras/models/customfields.py (+25 -7)
📝 netbox/extras/tests/test_customfields.py (+32 -0)
📝 netbox/templates/inc/custom_fields_panel.html (+2 -0)

📄 Description

Fixes: #5451

Since in 2.10 custom fields are now represented as JSON, it is quite easy to allow multiple selection option custom fields. Before the JSON change, this feature would have required a many-to-many relationship.

(This may have already been planned but I saw it could be done so I did it.)

For CSV importing the field, I'm not too sure how feasibile it would be for multiple choices, looking for some suggestions on this.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/5440 **Author:** [@TomGrozev](https://github.com/TomGrozev) **Created:** 12/11/2020 **Status:** ❌ Closed **Base:** `develop-2.10` ← **Head:** `develop-2.10` --- ### 📝 Commits (1) - [`3c75f6e`](https://github.com/netbox-community/netbox/commit/3c75f6eae52338d4220c37f3a9a0fd9de7f8fd02) Adds support for multi select custom fields ### 📊 Changes **5 files changed** (+61 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.10.md` (+1 -0) 📝 `netbox/extras/admin.py` (+1 -1) 📝 `netbox/extras/models/customfields.py` (+25 -7) 📝 `netbox/extras/tests/test_customfields.py` (+32 -0) 📝 `netbox/templates/inc/custom_fields_panel.html` (+2 -0) </details> ### 📄 Description ### Fixes: #5451 Since in 2.10 custom fields are now represented as JSON, it is quite easy to allow multiple selection option custom fields. Before the JSON change, this feature would have required a many-to-many relationship. (This may have already been planned but I saw it could be done so I did it.) For CSV importing the field, I'm not too sure how feasibile it would be for multiple choices, looking for some suggestions on this. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:24:57 +01:00
adam closed this issue 2025-12-29 22:24:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13018