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:
parent
78090176ea
commit
1456f7caa3
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user