from django.views.generic import TemplateView
from simple_faq.models import Topic


class Topics(TemplateView):
    template_name = "topics.html"
    context_object_name = "topics"
    model = Topic
from django.views.generic import ListView
from simple_faq.models import Topic


class Topics(ListView):
    template_name = "topics.html"
    context_object_name = "topics"
    model = Topic
Fix father class of topics view
Fix father class of topics view

@15m

- from django.views.generic import TemplateView
+ from django.views.generic import ListView
  from simple_faq.models import Topic
  
  
- class Topics(TemplateView):
+ class Topics(ListView):
      template_name = "topics.html"
      context_object_name = "topics"
      model = Topic
Fix father class of topics view
## Code Before:
from django.views.generic import TemplateView
from simple_faq.models import Topic


class Topics(TemplateView):
    template_name = "topics.html"
    context_object_name = "topics"
    model = Topic
## Instruction:
Fix father class of topics view
## Code After:
from django.views.generic import ListView
from simple_faq.models import Topic


class Topics(ListView):
    template_name = "topics.html"
    context_object_name = "topics"
    model = Topic