Commit c280cedf authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added correct redirect on social connect also to the welcome view

parent efbbeb10
......@@ -208,8 +208,8 @@ class WelcomeSocial(LoginRequiredMixin, FormView):
if self.request.user.student.totally_done():
messages.add_message(request, messages.INFO, settings_redirect)
return render_to_string('update_student',
context={'slug':self.request.user.username})
return redirect(reverse('update_student',
kwargs={'slug':self.request.user.username}))
else:
return super(WelcomeSocial, self).get(request, *args, **kwargs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment