mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-09 17:41:49 -05:00
provide default for permanent attribute in redirect view before Django 1.9 hits
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