Commit ada961b0 authored by Claude Paroz's avatar Claude Paroz
Browse files

Fixed #18527 -- Removed superfluous backslash in CBV docs

Thanks ramilzay at gmail.com for the report.
parent fa182e8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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