Kaydet (Commit) c498d2f9 authored tarafından Chris Beaven's avatar Chris Beaven

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
üst 7083bc58
......@@ -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",
)),
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment