Opened 18 years ago

Closed 18 years ago

#2486 closed defect (fixed)

Capitalize "?P" in redirect_to example in /documentation/generic_views/

Reported by: umbrae@… 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/'}),
)

http://www.djangoproject.com/documentation/generic_views/

Change History (1)

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [3526]) Fixed #2486 -- Fixed typo in docs/generic_views.txt. Thanks, umbrae@…

Note: See TracTickets for help on using tickets.
Back to Top