Skip to content

Commit

Permalink
Fixed #17510 - Typo in docs/topics/class-based-views.txt; thanks andr…
Browse files Browse the repository at this point in the history
…ew and noria.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
timgraham committed Feb 5, 2012
1 parent 44d1791 commit 9f95d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/topics/class-based-views.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Next, we'll write the ``PublisherBookListView`` view itself::
class PublisherBookListView(ListView): class PublisherBookListView(ListView):


context_object_name = "book_list" context_object_name = "book_list"
template_name = "books/books_by_publisher.html", template_name = "books/books_by_publisher.html"


def get_queryset(self): def get_queryset(self):
publisher = get_object_or_404(Publisher, name__iexact=self.args[0]) publisher = get_object_or_404(Publisher, name__iexact=self.args[0])
Expand All @@ -396,7 +396,7 @@ use it in the template::
class PublisherBookListView(ListView): class PublisherBookListView(ListView):


context_object_name = "book_list" context_object_name = "book_list"
template_name = "books/books_by_publisher.html", template_name = "books/books_by_publisher.html"


def get_queryset(self): def get_queryset(self):
self.publisher = get_object_or_404(Publisher, name__iexact=self.args[0]) self.publisher = get_object_or_404(Publisher, name__iexact=self.args[0])
Expand Down

0 comments on commit 9f95d79

Please sign in to comment.