Opened 9 years ago

Closed 9 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: UI/UX:

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 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

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