Skip to content

Commit

Permalink
PEP8 fix for some class-based views examples. Thanks to Peter Baumgar…
Browse files Browse the repository at this point in the history
…tner for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
SmileyChris committed Oct 18, 2010
1 parent 7083bc5 commit c498d2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/topics/class-based-views.txt
Expand Up @@ -213,7 +213,7 @@ attribute - here, we'll override it in the URLconf, since it's a simple change:
urlpatterns = patterns('',
(r'^publishers/$', ListView.as_view(
model=Publisher,
**context_object_name = "publisher_list",**
**context_object_name="publisher_list",**
)),
)

Expand Down Expand Up @@ -287,12 +287,12 @@ publication date, with the most recent first::

urlpatterns = patterns('',
(r'^publishers/$', ListView.as_view(
queryset = Publisher.objects.all(),
context_object_name = "publisher_list",
queryset=Publisher.objects.all(),
context_object_name="publisher_list",
)),
(r'^books/$', ListView.as_view(
queryset = Book.objects.order_by("-publication_date"),
context_object_name = "book_list",
queryset=Book.objects.order_by("-publication_date"),
context_object_name="book_list",
)),
)

Expand Down

0 comments on commit c498d2f

Please sign in to comment.