From 1456f7caa323924f1d0b5a34add4791e43a7a680 Mon Sep 17 00:00:00 2001 From: Marek Date: Wed, 12 Sep 2018 13:16:29 +0200 Subject: [PATCH] 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 --- .../dashboards/project/floating_ips/workflows.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/dashboards/project/floating_ips/workflows.py b/openstack_dashboard/dashboards/project/floating_ips/workflows.py index fc79875528..44da77da05 100644 --- a/openstack_dashboard/dashboards/project/floating_ips/workflows.py +++ b/openstack_dashboard/dashboards/project/floating_ips/workflows.py @@ -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")