Merge pull request #10296 from kkthxbye-code/10294-fix-wwn-changelog

Fixes #10294 - Don't return empty string for empty wwn form field
This commit is contained in:
Jeremy Stretch 2022-09-08 09:32:53 -04:00 committed by GitHub
commit a7562a6aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1331,6 +1331,12 @@ class InterfaceForm(InterfaceCommonForm, NetBoxModelForm):
label='VRF' label='VRF'
) )
wwn = forms.CharField(
empty_value=None,
required=False,
label='WWN'
)
fieldsets = ( fieldsets = (
('Interface', ('device', 'module', 'name', 'type', 'speed', 'duplex', 'label', 'description', 'tags')), ('Interface', ('device', 'module', 'name', 'type', 'speed', 'duplex', 'label', 'description', 'tags')),
('Addressing', ('vrf', 'mac_address', 'wwn')), ('Addressing', ('vrf', 'mac_address', 'wwn')),