Skip to content
Browse files

Fixed #2486 -- Fixed typo in docs/generic_views.txt. Thanks, umbrae@g…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 320c10c commit 0c8c42af7f5a5bb27b57d93192b77fa657d4d57f @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/generic_views.txt
2 docs/generic_views.txt
@@ -127,7 +127,7 @@ If the given URL is ``None``, Django will return an ``HttpResponseGone`` (410).
This example redirects from ``/foo/<id>/`` to ``/bar/<id>/``::
urlpatterns = patterns('django.views.generic.simple',
- ('^foo/(?p<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}),
+ ('^foo/(?P<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}),
This example returns a 410 HTTP error for requests to ``/bar/``::

0 comments on commit 0c8c42a

Please sign in to comment.
Something went wrong with that request. Please try again.