summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Beaven <smileychris@gmail.com>2010-10-18 22:28:38 +0000
committerChris Beaven <smileychris@gmail.com>2010-10-18 22:28:38 +0000
commitc498d2f9b4d8bf5e8d6d91af8e23f59af3e34b69 (patch)
tree9574e6cb844204dfa6d39b417c98668c4dc561c8 /docs
parent7083bc5824f719fd96cc9531a315ba220b3fba29 (diff)
PEP8 fix for some class-based views examples. Thanks to Peter Baumgartner for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/class-based-views.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/class-based-views.txt b/docs/topics/class-based-views.txt
index f936cb005d..7c4b4a3efa 100644
--- a/docs/topics/class-based-views.txt
+++ b/docs/topics/class-based-views.txt
@@ -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",**
)),
)
@@ -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",
)),
)