summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlin-hua-cheng <os.lcheng@gmail.com>2015-08-31 16:45:32 -0700
committerlin-hua-cheng <os.lcheng@gmail.com>2015-08-31 16:45:32 -0700
commit3a501397ac2273742bfd6c187c3871a08cf98686 (patch)
tree9b19cd14542b9dcfb119dc2e15601147e9df7aab
parent69da81dacde3ccf0cb37586129d684af3daf9160 (diff)
downloaddjango_openstack_auth-3a501397ac2273742bfd6c187c3871a08cf98686.tar.gz
Fix missing region field on WebSSO setup
Change-Id: Id79491ba8097e0bf854725470498d86641638fed Closes-Bug: #1490772
-rw-r--r--openstack_auth/forms.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/openstack_auth/forms.py b/openstack_auth/forms.py
index 3a92ed1..97a8bbf 100644
--- a/openstack_auth/forms.py
+++ b/openstack_auth/forms.py
@@ -84,8 +84,7 @@ class Login(django_auth_forms.AuthenticationForm):
choices=getattr(settings, 'WEBSSO_CHOICES', ()),
required=False,
initial=initial)
- # move auth_type to the top of the list
- fields_ordering.pop(-1)
+ # add auth_type to the top of the list
fields_ordering.insert(0, 'auth_type')
# websso is enabled, but keystone version is not supported