Allow multiple models for object selection custom field type #10867

Closed
opened 2025-12-29 21:36:58 +01:00 by adam · 1 comment
Owner

Originally created by @Azmodeszer on GitHub (Mar 11, 2025).

NetBox version

v4.2.5

Feature type

Change to existing functionality

Proposed functionality

Currently, when selecting the custom field type Object or Multiple objects, it's only possible to choose a single model under Related object type. Are there any hurdles with simply allowing multiple?

Use case

My personal use case is a custom field for linking to a test or production instance of a VM or device. I currently have the related object model set to Virtual Machine since that covers most of them, but there are a few instances where the pendant is a Device. I'd have to create a whole new custom field for this.

Database changes

No response

External dependencies

No response

Originally created by @Azmodeszer on GitHub (Mar 11, 2025). ### NetBox version v4.2.5 ### Feature type Change to existing functionality ### Proposed functionality Currently, when selecting the custom field type Object or Multiple objects, it's only possible to choose a single model under Related object type. Are there any hurdles with simply allowing multiple? ### Use case My personal use case is a custom field for linking to a test or production instance of a VM or device. I currently have the related object model set to Virtual Machine since that covers most of them, but there are a few instances where the pendant is a Device. I'd have to create a whole new custom field for this. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 21:36:58 +01:00
adam closed this issue 2025-12-29 21:36:58 +01:00
Author
Owner

@bctiemann commented on GitHub (Mar 20, 2025):

Unfortunately this isn't something we can support with custom fields. This might be an opportunity for a custom plugin.

@bctiemann commented on GitHub (Mar 20, 2025): Unfortunately this isn't something we can support with custom fields. This might be an opportunity for a custom plugin.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10867