Closes #20131: Add selector to the MACAddress model_form for interface and vminterface (#20132)
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
CI / build (20.x, 3.10) (push) Has been cancelled
CI / build (20.x, 3.11) (push) Has been cancelled
CI / build (20.x, 3.12) (push) Has been cancelled

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

View File

@ -1890,6 +1890,7 @@ class MACAddressForm(NetBoxModelForm):
label=_('Interface'), label=_('Interface'),
queryset=Interface.objects.all(), queryset=Interface.objects.all(),
required=False, required=False,
selector=True,
context={ context={
'parent': 'device', 'parent': 'device',
}, },
@ -1898,6 +1899,7 @@ class MACAddressForm(NetBoxModelForm):
label=_('VM Interface'), label=_('VM Interface'),
queryset=VMInterface.objects.all(), queryset=VMInterface.objects.all(),
required=False, required=False,
selector=True,
context={ context={
'parent': 'virtual_machine', 'parent': 'virtual_machine',
}, },