mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Empty MAC address should be null
This commit is contained in:
parent
72a115b434
commit
4883bc3dd4
@ -97,6 +97,11 @@ class DeviceComponentFilterForm(BootstrapMixin, CustomFieldFilterForm):
|
|||||||
|
|
||||||
|
|
||||||
class InterfaceCommonForm(forms.Form):
|
class InterfaceCommonForm(forms.Form):
|
||||||
|
mac_address = forms.CharField(
|
||||||
|
empty_value=None,
|
||||||
|
required=False,
|
||||||
|
label='MAC address'
|
||||||
|
)
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
super().clean()
|
super().clean()
|
||||||
|
Loading…
Reference in New Issue
Block a user