1. Benoit Chesneau
  2. django-authopenid


bchesneau  committed 576b381

[svn r88] don't forget args.

  • Participants
  • Parent commits 0a9601f
  • Branches trunk

Comments (0)

Files changed (1)

File django_authopenid/views.py

View file
 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