omab/django-social-auth — pull request #194 by youngrok (2011-12-14 18:01:50+00:00)
Title: read redirect field value before login()

while doing complete_process, redirect field value (aka session['next']) should be read before login() called. login(request, user) flushes session if user changed. After that session['next'] would be None.