mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-28 02:06:10 -06:00
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
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:
parent
db1786c385
commit
53c890c081
@ -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',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user