django class based views

# views.py
from django.views.generic import ListView
from books.models import Publisher

class PublisherListView(ListView):
    model = Publisher

Here is what the above code is Doing:
1. Importing the ListView class from Django’s generic views.
2. Creating a PublisherListView class that inherits from ListView.
3. Specifying that the model for this view is Publisher.