old_contents: from django.views.generic import DetailView
  from models import InfoPage
  
  class InfoPageView(DetailView):
      """Show the page, or 'index' if no slug"""
      model = InfoPage
  
new_contents: from django.views.generic import DetailView
  from models import InfoPage
  
  class InfoPageView(DetailView):
      """Show the page for the given slug"""
      model = InfoPage
      queryset = InfoPage.objects.filter(kind=InfoPage.KIND_PAGE)
  
subject: Use a queryset to display only kind=page