Commits

Anonymous committed 576b381

[svn r88] don't forget args.

Comments (0)

Files changed (1)

django_authopenid/views.py

 def not_authenticated(func):
     """ decorator that redirect user to next page if
     he is already logged."""
-    def decorated(request, **kwargs):
+    def decorated(request, *args, **kwargs):
         if request.user.is_authenticated():
             next = request.GET.get("next", "/")
             return HttpResponseRedirect(next)
-        return func(request, **kwargs)
+        return func(request, *args, **kwargs)
     return decorated
 
 @not_authenticated