Skip to content

Commit 53c890c

Browse files
authored
Closes #20131: Add selector to the MACAddress model_form for interface and vminterface (#20132)
1 parent db1786c commit 53c890c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

netbox/dcim/forms/model_forms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,7 @@ class MACAddressForm(NetBoxModelForm):
18901890
label=_('Interface'),
18911891
queryset=Interface.objects.all(),
18921892
required=False,
1893+
selector=True,
18931894
context={
18941895
'parent': 'device',
18951896
},
@@ -1898,6 +1899,7 @@ class MACAddressForm(NetBoxModelForm):
18981899
label=_('VM Interface'),
18991900
queryset=VMInterface.objects.all(),
19001901
required=False,
1902+
selector=True,
19011903
context={
19021904
'parent': 'virtual_machine',
19031905
},

0 commit comments

Comments
 (0)