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

1from typing import ClassVar 1a

2 

3from django.views.generic import ListView 1a

4 

5from .models import Book 1a

6 

7 

8class BookListView(ListView): 1a

9 model = Book 1a

10 template_name = "book_list.html" 1a

11 

12 ordering: ClassVar[list[str]] = ["title"] 1a

13 paginate_by = 2 1a