mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
Merge pull request #4579 from AlanCoding/redirect_warning
Obey the suggestion in RemovedInDjango19Warning
This commit is contained in:
@@ -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('"'))
|
||||
|
||||
Reference in New Issue
Block a user