Author: SmileyChris Date: 2010-10-18 17:28:38 -0500 (Mon, 18 Oct 2010) New Revision: 14265
Modified: django/trunk/docs/topics/class-based-views.txt Log: PEP8 fix for some class-based views examples. Thanks to Peter Baumgartner for the report. Modified: django/trunk/docs/topics/class-based-views.txt =================================================================== --- django/trunk/docs/topics/class-based-views.txt 2010-10-18 21:39:30 UTC (rev 14264) +++ django/trunk/docs/topics/class-based-views.txt 2010-10-18 22:28:38 UTC (rev 14265) @@ -213,7 +213,7 @@ urlpatterns = patterns('', (r'^publishers/$', ListView.as_view( model=Publisher, - **context_object_name = "publisher_list",** + **context_object_name="publisher_list",** )), ) @@ -287,12 +287,12 @@ 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", )), ) -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.