Fixes #5444: Don't force overwriting of mgmt_only when bulk editing interfaces

This commit is contained in:
Jeremy Stretch 2020-12-15 16:17:52 -05:00
parent d64fc261e2
commit 3c2ddf1f69
2 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,7 @@
### Bug Fixes
* [#5444](https://github.com/netbox-community/netbox/issues/5444) - Don't force overwriting of `mgmt_only` when bulk editing interfaces
* [#5450](https://github.com/netbox-community/netbox/issues/5450) - API serializer foreign count fields do not have a default value
* [#5453](https://github.com/netbox-community/netbox/issues/5453) - Correct change log representation when creating a cable
* [#5458](https://github.com/netbox-community/netbox/issues/5458) - Creating a component template throws an exception

View File

@ -2839,7 +2839,7 @@ class InterfaceBulkCreateForm(
class InterfaceBulkEditForm(
form_from_model(Interface, [
'label', 'type', 'enabled', 'lag', 'mac_address', 'mtu', 'mgmt_only', 'description', 'mode'
'label', 'type', 'enabled', 'lag', 'mac_address', 'mtu', 'description', 'mode'
]),
BootstrapMixin,
AddRemoveTagsForm,
@ -2855,6 +2855,11 @@ class InterfaceBulkEditForm(
disabled=True,
widget=forms.HiddenInput()
)
mgmt_only = forms.NullBooleanField(
required=False,
widget=BulkEditNullBooleanSelect,
label='Management only'
)
untagged_vlan = DynamicModelChoiceField(
queryset=VLAN.objects.all(),
required=False,