Commits

Darie Petrov  committed 516d2c3

fixed login redirect with username

  • Participants
  • Parent commits d25b0a3

Comments (0)

Files changed (1)

File socialregistration/views.py

 from django.contrib.auth import logout
 from django.core.urlresolvers import reverse
 from django.http import HttpResponseRedirect
+from django.shortcuts import redirect
 from django.utils.translation import ugettext_lazy as _
 from django.views.generic.base import View, TemplateView
 from socialregistration.clients.oauth import OAuthError
         self.send_login_signal(request, user, profile, client)
         
         self.delete_session_data(request)
-        
-        return HttpResponseRedirect(self.get_next(request))
+        return HttpResponseRedirect(self.get_next(request) % {'username': request.user.username})
         
     def get(self, request):
         """