Coverage for books/views.py: 100.00%
8 statements
« prev ^ index » next coverage.py v7.17.2, created at 2026-11-05 08:37 -0800
« prev ^ index » next coverage.py v7.17.2, created at 2026-11-05 08:37 -0800
1from typing import ClassVar 1a
3from django.views.generic import ListView 1a
5from .models import Book 1a
8class BookListView(ListView): 1a
9 model = Book 1a
10 template_name = "book_list.html" 1a
12 ordering: ClassVar[list[str]] = ["title"] 1a
13 paginate_by = 2 1a