Browse files

Fixes #2964 -- Fixed typo in regex in docstring for redirect_to. Than…

…ks, wam-djangobug@wamber.net.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a043715 commit cb93c0d0dae843d8d99afc3470e79a6920b746e6 @freakboy3742 freakboy3742 committed Oct 30, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/views/generic/simple.py
View
2 django/views/generic/simple.py
@@ -18,7 +18,7 @@ def redirect_to(request, url, **kwargs):
``/foo/<id>/`` to ``/bar/<id>/``, you could use the following URLconf::
urlpatterns = patterns('',
- ('^foo/(?p<id>\d+)/$', 'django.views.generic.simple.redirect_to', {'url' : '/bar/%(id)s/'}),
+ ('^foo/(?P<id>\d+)/$', 'django.views.generic.simple.redirect_to', {'url' : '/bar/%(id)s/'}),
)
If the given url is ``None``, a HttpResponseGone (410) will be issued.

0 comments on commit cb93c0d

Please sign in to comment.