When a user accesses a url which requires login. The view decorator redirects to the login page. after the user enters his username and password how can I redirect the user to t
You can try:
return redirect(self.request.GET.get('next'))