1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Empty MAC address should be null

This commit is contained in:
jeremystretch
2021-04-02 17:53:00 -04:00
parent 72a115b434
commit 4883bc3dd4

View File

@@ -97,6 +97,11 @@ class DeviceComponentFilterForm(BootstrapMixin, CustomFieldFilterForm):
class InterfaceCommonForm(forms.Form):
mac_address = forms.CharField(
empty_value=None,
required=False,
label='MAC address'
)
def clean(self):
super().clean()