Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#15005 closed (invalid)

Documentation of django.views.generic.simple.redirect_to incorrect?

Reported by: nkuttler Owned by: nobody
Component: Documentation Version: 1.3-beta
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

On http://docs.djangoproject.com/en/dev/ref/generic-views/?from=olddocs#django-views-generic-simple-redirect-to the examples like

urlpatterns = patterns('django.views.generic.simple',
    ('^foo/(?P<id>\d+)/$', 'redirect_to', {'url': '/bar/%(id)s/'}),
)

seem to be incorrect. redirect_to isn't supposed to be a string but the class?

Change History (2)

comment:1 Changed 5 years ago by lrekucki

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The example is correct: "redirect_to" is a function inside module "django.views.generic.simple".

comment:2 Changed 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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