diff options
author | Akihiro Motoki <amotoki@gmail.com> | 2021-02-24 21:36:49 +0900 |
---|---|---|
committer | Vishal Manchanda <manchandavishal143@gmail.com> | 2021-09-14 19:32:23 +0000 |
commit | be12ce1e96e3d2581f1c21d38881a0cf54102e2d (patch) | |
tree | 5a41de3c35ae60d7f8798eda4477ecce9d6123d8 | |
parent | 6dfcb901314476df95028bdc7aa536809fb1d127 (diff) | |
download | horizon-be12ce1e96e3d2581f1c21d38881a0cf54102e2d.tar.gz |
Support Django 3.0 and 3.1 support (2)
It seems Django 3.0+ does not allow to set an unknown attribute
to forms.Form.fields. "keyOrder" attribute has no meaning and
"field_order" of the Form class is the right way to configure
the order of fields.
Change-Id: Ib3a631a3626977a2e7114dac217aacd523354c53
-rw-r--r-- | openstack_dashboard/dashboards/identity/users/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstack_dashboard/dashboards/identity/users/forms.py b/openstack_dashboard/dashboards/identity/users/forms.py index dc037c166..08988c872 100644 --- a/openstack_dashboard/dashboards/identity/users/forms.py +++ b/openstack_dashboard/dashboards/identity/users/forms.py @@ -296,8 +296,8 @@ class ChangePasswordForm(PasswordMixin, forms.SelfHandlingForm): strip=False, widget=forms.PasswordInput(render_value=False)) # Reorder form fields from multiple inheritance - self.fields.keyOrder = ["id", "name", "admin_password", - "password", "confirm_password"] + self.field_order = ["id", "name", "admin_password", + "password", "confirm_password"] @sensitive_variables('data', 'password', 'admin_password') def handle(self, request, data): |