In such case the best way is to use @method_decorator(login_required()) over the dispatch method because it's the enter point in View class.