diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt
index 3812fae..d375e8d 100644
|
a
|
b
|
Next, we'll write the ``PublisherBookListView`` view itself::
|
| 380 | 380 | class PublisherBookListView(ListView): |
| 381 | 381 | |
| 382 | 382 | context_object_name = "book_list" |
| 383 | | template_name = "books/books_by_publisher.html", |
| | 383 | template_name = "books/books_by_publisher.html" |
| 384 | 384 | |
| 385 | 385 | def get_queryset(self): |
| 386 | 386 | publisher = get_object_or_404(Publisher, name__iexact=self.args[0]) |
| … |
… |
use it in the template::
|
| 396 | 396 | class PublisherBookListView(ListView): |
| 397 | 397 | |
| 398 | 398 | context_object_name = "book_list" |
| 399 | | template_name = "books/books_by_publisher.html", |
| | 399 | template_name = "books/books_by_publisher.html" |
| 400 | 400 | |
| 401 | 401 | def get_queryset(self): |
| 402 | 402 | self.publisher = get_object_or_404(Publisher, name__iexact=self.args[0]) |