Author: adrian Date: 2010-01-10 12:38:00 -0600 (Sun, 10 Jan 2010) New Revision: 12182
Modified: django/trunk/docs/topics/generic-views.txt Log: Fixed #12161 -- Added escaping of a backslash in two generic-views.txt examples. Thanks, infopams Modified: django/trunk/docs/topics/generic-views.txt =================================================================== --- django/trunk/docs/topics/generic-views.txt 2010-01-10 18:36:45 UTC (rev 12181) +++ django/trunk/docs/topics/generic-views.txt 2010-01-10 18:38:00 UTC (rev 12182) @@ -80,7 +80,7 @@ ('^about/$', direct_to_template, { 'template': 'about.html' }), - **('^about/(\w+)/$', about_pages),** + **('^about/(\\w+)/$', about_pages),** ) Next, we'll write the ``about_pages`` view:: @@ -382,7 +382,7 @@ urlpatterns = patterns('', (r'^publishers/$', list_detail.object_list, publisher_info), - **(r'^books/(\w+)/$', books_by_publisher),** + **(r'^books/(\\w+)/$', books_by_publisher),** ) Next, we'll write the ``books_by_publisher`` view itself::
-- 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.