Closes #20131: Add selector to the MACAddress `model_form` for `interface` and `vminterface` (#20132)

This commit is contained in:
Daniel Sheppard 2025-08-20 11:09:21 -05:00 committed by GitHub
parent db1786c385
commit 53c890c081
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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',
},