Merge pull request #4579 from AlanCoding/redirect_warning

Obey the suggestion in RemovedInDjango19Warning
This commit is contained in:
Alan Rominger 2017-01-05 14:51:02 -05:00 committed by GitHub
commit 8ce97bae91

View File

@ -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('"'))