Add use_required_attribute = False in Add Interface Form
When an element is required and hidden,
the browser will report an error when submitting the form.
Here is the code location where Django adds the required attribute to the element:
Closes-Bug:
@@ -26,6 +26,7 @@ LOG = logging.getLogger(__name__)
class AddInterface(forms.SelfHandlingForm):
+ use_required_attribute = False
subnet_id = forms.ThemableChoiceField(label=_("Subnet"))
ip_address = forms.IPField(
label=_("IP Address (optional)"), required=False, initial="",
