From 53c890c081c120094504d335bae13e689d89bea2 Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Wed, 20 Aug 2025 11:09:21 -0500 Subject: [PATCH] Closes #20131: Add selector to the MACAddress `model_form` for `interface` and `vminterface` (#20132) --- netbox/dcim/forms/model_forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/dcim/forms/model_forms.py b/netbox/dcim/forms/model_forms.py index d8cff372f..00b7733f1 100644 --- a/netbox/dcim/forms/model_forms.py +++ b/netbox/dcim/forms/model_forms.py @@ -1890,6 +1890,7 @@ class MACAddressForm(NetBoxModelForm): label=_('Interface'), queryset=Interface.objects.all(), required=False, + selector=True, context={ 'parent': 'device', }, @@ -1898,6 +1899,7 @@ class MACAddressForm(NetBoxModelForm): label=_('VM Interface'), queryset=VMInterface.objects.all(), required=False, + selector=True, context={ 'parent': 'virtual_machine', },