From 12e1e559b53f7a52f8f60917fa6dec0bbdd215ce Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 6 Nov 2019 14:40:41 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/views/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/views/login.py b/apps/authentication/views/login.py index 282ec8501..d409996c2 100644 --- a/apps/authentication/views/login.py +++ b/apps/authentication/views/login.py @@ -84,7 +84,7 @@ class UserLoginView(mixins.AuthMixin, FormView): def redirect_to_guard_view(self): guard_url = reverse('authentication:login-guard') args = self.request.META.get('QUERY_STRING', '') - if args and self.query_string: + if args: guard_url = "%s?%s" % (guard_url, args) return redirect(guard_url)