[Update] 修改bug

pull/3428/head
ibuler 2019-11-06 14:40:41 +08:00
parent fa02e3fb75
commit 12e1e559b5
1 changed files with 1 additions and 1 deletions

View File

@ -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)