浏览代码

Fixed #18527 -- Removed superfluous backslash in CBV docs

Thanks ramilzay at gmail.com for the report.
Claude Paroz 12 年之前
父节点
当前提交
ada961b0d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/class-based-views/generic-display.txt

+ 1 - 1
docs/topics/class-based-views/generic-display.txt

@@ -397,7 +397,7 @@ custom view::
 
     urlpatterns = patterns('',
         #...
-        url(r'^authors/(?P<pk>\\d+)/$', AuthorDetailView.as_view(), name='author-detail'),
+        url(r'^authors/(?P<pk>\d+)/$', AuthorDetailView.as_view(), name='author-detail'),
     )
 
 Then we'd write our new view -- ``get_object`` is the method that retrieves the