As discussed above, this is the default template file expected by the generic class-based list view (for a model named variable to perform conditional processing the last time that the loop is run.
Open /catalog/and copy in the line shown in bold below. The view function has a different format than before — that's because this view will actually be implemented as a class.
The book list page will display a list of all the available book records in the page, accessed using the url: .
The page will display a title and author for each record, with the title being a hyperlink to the associated book detail page.
These can significantly reduce the amount of view code needed, making them easier to write and maintain.
The final part of the tutorial will demonstrate how to paginate your data when using generic class-based list views.