I am using a ListView that list videos according to tags. The filtering happens in get_queryset(). I\'d like to redirect the user to another page if the tag doesn\'t contains an
Found it:
def render_to_response(self, context): if not self.videos: return redirect('other_page') return super(VideosView, self).render_to_response(context)
This is called for all HTTP methods