mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
7083bc5824
commit
c498d2f9b4
|
@ -213,7 +213,7 @@ attribute - here, we'll override it in the URLconf, since it's a simple change:
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
(r'^publishers/$', ListView.as_view(
|
(r'^publishers/$', ListView.as_view(
|
||||||
model=Publisher,
|
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('',
|
urlpatterns = patterns('',
|
||||||
(r'^publishers/$', ListView.as_view(
|
(r'^publishers/$', ListView.as_view(
|
||||||
queryset = Publisher.objects.all(),
|
queryset=Publisher.objects.all(),
|
||||||
context_object_name = "publisher_list",
|
context_object_name="publisher_list",
|
||||||
)),
|
)),
|
||||||
(r'^books/$', ListView.as_view(
|
(r'^books/$', ListView.as_view(
|
||||||
queryset = Book.objects.order_by("-publication_date"),
|
queryset=Book.objects.order_by("-publication_date"),
|
||||||
context_object_name = "book_list",
|
context_object_name="book_list",
|
||||||
)),
|
)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue