title: TypeError: 'AnonymousUser' object is not iterable eventhough I'm using LoginRequiredMixin
body: <p>I am having a class based view</p>
  <pre><code>from django.contrib.auth.mixins import LoginRequiredMixin
  
  class ProjectView(TemplateView, LoginRequiredMixin):
      template_name = 'project.html'
  
      def get_context_data(self, **kwargs):
          proj = Project.object.filter(user = self.request.user)
          context = super().get_context_data(**kwargs)
          context['project'] = proj
          return context
  </code></pre>
  <p>Eventhough I'm using LoginRequiredMixin it is going to the get_context_data</p>
  <p>And it is throing one error like this &quot;TypeError: 'AnonymousUser' object is not iterable&quot;</p>