From cb93c0d0dae843d8d99afc3470e79a6920b746e6 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 30 Oct 2006 13:49:45 +0000 Subject: [PATCH] Fixes #2964 -- Fixed typo in regex in docstring for redirect_to. Thanks, wam-djangobug@wamber.net. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3948 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/generic/simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/generic/simple.py b/django/views/generic/simple.py index 4571ef8605..325288d52f 100644 --- a/django/views/generic/simple.py +++ b/django/views/generic/simple.py @@ -18,7 +18,7 @@ def redirect_to(request, url, **kwargs): ``/foo//`` to ``/bar//``, you could use the following URLconf:: urlpatterns = patterns('', - ('^foo/(?p\d+)/$', 'django.views.generic.simple.redirect_to', {'url' : '/bar/%(id)s/'}), + ('^foo/(?P\d+)/$', 'django.views.generic.simple.redirect_to', {'url' : '/bar/%(id)s/'}), ) If the given url is ``None``, a HttpResponseGone (410) will be issued.