text: from django.utils.decorators import method_decorator
  from django.contrib.auth.decorators import login_required
  from django.shortcuts import redirect
  
  
  class LoginRequiredMixin(object):
  
      @method_decorator(login_required(login_url='/auth-login/'))
      def dispatch(self, request, *args, **kwargs):
          return super(LoginRequiredMixin, self).dispatch(request, *args, **kwargs)
  