We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c69fdad commit 543a991Copy full SHA for 543a991
1 file changed
custom_auth/views.py
@@ -86,6 +86,8 @@ class ClientIdLoginView(views.LoginView):
86
def get_context_data(self, **kwargs):
87
context = super(views.LoginView, self).get_context_data(**kwargs)
88
context["googlefail"] = self.request.GET.get("error", "") == "googlefail"
89
+ context["next"] = self.request.GET.get("next", settings.LOGIN_REDIRECT_URL)
90
+
91
context.update(self.extra_context)
92
93
return context
0 commit comments