We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62cae13 commit e69cb6aCopy full SHA for e69cb6a
netfields/forms.py
@@ -84,3 +84,8 @@ def to_python(self, value):
84
return EUI(value, dialect=mac_unix_common)
85
except (AddrFormatError, TypeError):
86
raise ValidationError(self.error_messages['invalid'])
87
+
88
+ def widget_attrs(self, widget):
89
+ attrs = super(MACAddressFormField, self).widget_attrs(widget)
90
+ attrs.update({'maxlength': '17'})
91
+ return attrs
0 commit comments