title: How to use LoginRequiredMixin with UserPassesTestMixin correctly
body: <p>I have a custom view with <code>LoginRequiredMixin</code> and <code>UserPassesTestMixin</code>:</p>
  
  <pre><code>class CustomListView(LoginRequiredMixin, UserPassesTestMixin, ListView):
      template_name = '_global/_list.html'
  
      raise_exception = True
      permission_denied_message = 'You must select an issuer.'
  
      def test_func(self):
          return self.request.session.get('issuer_pk', None) is not None
  </code></pre>
  
  <p>This works as expected unless I access the view with an anonymous user, in which case I get the 403 error and not a login redirect.</p>
  
  <p>The desired behaviour is to first require an authenticated user and then pass the tests. Have I got the inheritance wrong somehow?</p>