Opened 18 years ago
Closed 18 years ago
#2486 closed defect (fixed)
Capitalize "?P" in redirect_to example in /documentation/generic_views/
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Documentation | Version: | |
Severity: | minor | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
example breaks because P is not capitalized in redirect_to example in the docs:
urlpatterns = patterns('django.views.generic.simple', ('^foo/(?p<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}), )
should be:
urlpatterns = patterns('django.views.generic.simple', ('^foo/(?P<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}), )
Note:
See TracTickets
for help on using tickets.
(In [3526]) Fixed #2486 -- Fixed typo in docs/generic_views.txt. Thanks, umbrae@…