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. Change-Id: I6d0a2951cc74ffa57d091a4589372bf9b93cd33f Closes-Bug: #1792127
This commit is contained in:
@@ -30,12 +30,16 @@ ALLOCATE_URL = "horizon:project:floating_ips:allocate"
|
|||||||
|
|
||||||
|
|
||||||
class AssociateIPAction(workflows.Action):
|
class AssociateIPAction(workflows.Action):
|
||||||
|
use_required_attribute = False
|
||||||
ip_id = forms.ThemableDynamicTypedChoiceField(
|
ip_id = forms.ThemableDynamicTypedChoiceField(
|
||||||
label=_("IP Address"),
|
label=_("IP Address"),
|
||||||
coerce=filters.get_int_or_uuid,
|
coerce=filters.get_int_or_uuid,
|
||||||
empty_value=None,
|
empty_value=None,
|
||||||
add_item_link=ALLOCATE_URL)
|
add_item_link=ALLOCATE_URL
|
||||||
instance_id = forms.ThemableChoiceField(label=_("Port to be associated"))
|
)
|
||||||
|
instance_id = forms.ThemableChoiceField(
|
||||||
|
label=_("Port to be associated")
|
||||||
|
)
|
||||||
|
|
||||||
class Meta(object):
|
class Meta(object):
|
||||||
name = _("IP Address")
|
name = _("IP Address")
|
||||||
|
Reference in New Issue
Block a user