title: In a django view, how do I redirect a user to the login view if that don't belong to the object set?
body: <p>I feel like this is really simple and I'm just missing it.</p>
  
  <p>I have a very simple generic class based view detail.</p>
  
  <p>When I do teh <code>get_object</code> I want to make sure that the <code>request.user</code> is in the set that belongs to the object. If not, redirect them to the login. </p>
  
  <p>Here's my view:</p>
  
  <pre><code>class AwesomeDetail(LoginRequiredMixin, DetailView):
      """
      An awesome detail
      """
      template_name = "awesomeness/detail.html"
  
      def get_object(self):
          awesomeness = ModelName.objects.get(id=self.kwargs['pk'])
          if self.request.user in awesomeness.staff.all():
              return awesomness
          else:
              return redirect('account_login')
  </code></pre>
  
  <p>Staff is a many to many to users. What am I missing? The redirect isn't happening. It renders the template, but of course, awesomeness is missing.</p>