[PR #18830] [MERGED] Closes #18138: Add advanced object selector for custom field object and multi-object inputs #15449

Closed
opened 2025-12-30 00:21:59 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18830
Author: @atownson
Created: 3/6/2025
Status: Merged
Merged: 3/26/2025
Merged by: @arthanson

Base: mainHead: issue_18138


📝 Commits (2)

  • c5cca70 Added advanced object selector to custom field object and multi-object inputs
  • 3898510 Merge branch 'netbox-community:main' into issue_18138

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 netbox/extras/models/customfields.py (+2 -0)

📄 Description

Closes: #18138

The approach here was to hard-code the selector=True argument for the object and multi-object inputs, thus always rendering the advanced object selector button. The advantage to this approach is that it does not require an additional attribute on the CustomField model or any logic to show/hide the input for such an attribute on the create form.


🔄 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/18830 **Author:** [@atownson](https://github.com/atownson) **Created:** 3/6/2025 **Status:** ✅ Merged **Merged:** 3/26/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `issue_18138` --- ### 📝 Commits (2) - [`c5cca70`](https://github.com/netbox-community/netbox/commit/c5cca7009cd5ee309565492be7444e551d9674af) Added advanced object selector to custom field object and multi-object inputs - [`3898510`](https://github.com/netbox-community/netbox/commit/3898510c51a728b2e7566aabd46240769fd961e7) Merge branch 'netbox-community:main' into issue_18138 ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/models/customfields.py` (+2 -0) </details> ### 📄 Description ### Closes: #18138 The approach here was to hard-code the `selector=True` argument for the object and multi-object inputs, thus always rendering the advanced object selector button. The advantage to this approach is that it does not require an additional attribute on the `CustomField` model or any logic to show/hide the input for such an attribute on the create form. --- <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-30 00:21:59 +01:00
adam closed this issue 2025-12-30 00:21:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15449