diff options
author | Adrian Holovaty <adrian@holovaty.com> | 2006-08-05 01:49:26 +0000 |
---|---|---|
committer | Adrian Holovaty <adrian@holovaty.com> | 2006-08-05 01:49:26 +0000 |
commit | 0c8c42af7f5a5bb27b57d93192b77fa657d4d57f (patch) | |
tree | 508d5d5a5ae905ea6c0aed8a3a1a66d0e4837771 /docs | |
parent | 320c10cb19f126e25ec84d7f69945f3aa10d17e4 (diff) | |
download | django-0c8c42af7f5a5bb27b57d93192b77fa657d4d57f.tar.gz |
Fixed #2486 -- Fixed typo in docs/generic_views.txt. Thanks, umbrae@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r-- | docs/generic_views.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/generic_views.txt b/docs/generic_views.txt index aab878467f..fdab97de27 100644 --- a/docs/generic_views.txt +++ b/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/``:: |