Code

Ticket #12161: 12161.diff

File 12161.diff, 768 bytes (added by timo, 4 years ago)
Line 
1Index: docs/topics/generic-views.txt
2===================================================================
3--- docs/topics/generic-views.txt       (revision 11723)
4+++ docs/topics/generic-views.txt       (working copy)
5@@ -80,7 +80,7 @@
6         ('^about/$', direct_to_template, {
7             'template': 'about.html'
8         }),
9-        **('^about/(\w+)/$', about_pages),**
10+        **('^about/(\\w+)/$', about_pages),**
11     )
12 
13 Next, we'll write the ``about_pages`` view::
14@@ -382,7 +382,7 @@
15 
16     urlpatterns = patterns('',
17         (r'^publishers/$', list_detail.object_list, publisher_info),
18-        **(r'^books/(\w+)/$', books_by_publisher),**
19+        **(r'^books/(\\w+)/$', books_by_publisher),**
20     )
21 
22 Next, we'll write the ``books_by_publisher`` view itself::