title: How to redirect a ListView to DetailView if queryset is a single object?
body: <p>I have a ListView with a custom get_queryset() method and a DetailView, but I would like to avoid showing the ListView when the queryset returns only one object (I want to redirect the user to the DetailView of that object).</p>
  
  <p>Is there a way to accomplish that using class based views? I tried with a redirect inside the get_queryset() of ListView, but it doesn't work and I can't find anything useful in the ListView class documentation.</p>