- def get (self, request, *args, **kwds):
- return self.get_or_logout (request, *args, **kwds)
+ @method_decorator(login_required)
+ def dispatch (self, request, *args, **kwds):
+ return super(LoginRequiredAutoLogoutView,self).dispatch(request,*args,**kwds)