Disables Django 1.10 required attribute
Removes the default 'required' attribute rendered by Django into the
hidden Selects of the ThemableDynamicTypedChoiceField widgets. This
attribute causes issues in Chrome with a new, client side validation
present in Django 1.10.
Closes-Bug:
@@ -30,12 +30,16 @@ ALLOCATE_URL = "horizon:project:floating_ips:allocate"
class AssociateIPAction(workflows.Action):
+ use_required_attribute = False
ip_id = forms.ThemableDynamicTypedChoiceField(
label=_("IP Address"),
coerce=filters.get_int_or_uuid,
empty_value=None,
- add_item_link=ALLOCATE_URL)
- instance_id = forms.ThemableChoiceField(label=_("Port to be associated"))
+ add_item_link=ALLOCATE_URL
+ )
+ instance_id = forms.ThemableChoiceField(
+ label=_("Port to be associated")
+ )
class Meta(object):
name = _("IP Address")
