Opened 12 years ago

Closed 12 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


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/'}),

Change History (1)

comment:1 Changed 12 years ago by Adrian Holovaty

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