summarylogtreecommitdiffstats
path: root/0001-fix-removed-curry.patch
blob: d44cedde5ef8a4f57cf6177b8a6103c7dde7393b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/horizon-20.0.0/openstack_auth/views.py b/horizon-20.0.0/openstack_auth/views.py
index 353dc99..b7e5b7c 100644
--- a/horizon-20.0.0/openstack_auth/views.py
+++ b/horizon-20.0.0/openstack_auth/views.py
@@ -12,6 +12,7 @@
 # limitations under the License.
 import datetime
 import logging
+import functools
 
 from django.conf import settings
 from django.contrib import auth
@@ -116,9 +117,9 @@ def login(request):
         initial.update({'region': requested_region})
 
     if request.method == "POST":
-        form = functional.curry(forms.Login)
+        form = functools.partial(forms.Login)
     else:
-        form = functional.curry(forms.Login, initial=initial)
+        form = functools.partial(forms.Login, initial=initial)
 
     choices = settings.WEBSSO_CHOICES
     reason = get_csrf_reason(request.GET.get('csrf_failure'))