mirror of
https://github.com/ansible/awx.git
synced 2026-01-28 00:51:27 -03:30
provide default for permanent attribute in redirect view before Django 1.9 hits
This commit is contained in:
parent
5f0940e411
commit
983bee115c
@ -25,6 +25,8 @@ logger = logging.getLogger('awx.sso.views')
|
||||
|
||||
class BaseRedirectView(RedirectView):
|
||||
|
||||
permanent = True
|
||||
|
||||
def get_redirect_url(self, *args, **kwargs):
|
||||
last_path = self.request.COOKIES.get('lastPath', '')
|
||||
last_path = urllib.quote(urllib.unquote(last_path).strip('"'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user