components/python/django_openstack_auth/patches/01-set-test-cookie.patch
branchs11-update
changeset 4519 6388f5bc4fe5
equal deleted inserted replaced
4514:d5eea6257d67 4519:6388f5bc4fe5
       
     1 In-house patch to fix authenticaton 'failing' because of lack of cookie
       
     2 support simply because the cookie was never set. This patch is unlikely
       
     3 to be unsuitable for upstream, and should be removed when Django is
       
     4 updated to 1.6.11 or greater, as the problem disappears with that
       
     5 version.
       
     6 
       
     7 --- django_openstack_auth-1.1.9/openstack_auth/forms.py.orig	2015-06-19 15:03:16.425066412 -0700
       
     8 +++ django_openstack_auth-1.1.9/openstack_auth/forms.py	2015-06-19 15:05:16.267455199 -0700
       
     9 @@ -71,6 +71,7 @@
       
    10          elif len(self.fields['region'].choices) > 1:
       
    11              self.fields['region'].initial = self.request.COOKIES.get(
       
    12                  'login_region')
       
    13 +        self.request.session.set_test_cookie()
       
    14 
       
    15      @staticmethod
       
    16      def get_region_choices():