Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit cb93c0d0dae843d8d99afc3470e79a6920b746e6 1 parent a043715
Russell Keith-Magee authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/views/generic/simple.py
2  django/views/generic/simple.py
@@ -18,7 +18,7 @@ def redirect_to(request, url, **kwargs):
18 18
     ``/foo/<id>/`` to ``/bar/<id>/``, you could use the following URLconf::
19 19
 
20 20
         urlpatterns = patterns('',
21  
-            ('^foo/(?p<id>\d+)/$', 'django.views.generic.simple.redirect_to', {'url' : '/bar/%(id)s/'}),
  21
+            ('^foo/(?P<id>\d+)/$', 'django.views.generic.simple.redirect_to', {'url' : '/bar/%(id)s/'}),
22 22
         )
23 23
 
24 24
     If the given url is ``None``, a HttpResponseGone (410) will be issued.

0 notes on commit cb93c0d

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