Opened 18 years ago

Closed 18 years ago

#4628 closed (duplicate)

wrong HttpResponseRedirect parameters

Reported by: pgrimes@… Owned by: Jacob
Component: Documentation Version: dev
Severity: 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

In the latest tutorial documentation you have this:
return HttpResponseRedirect(reverse('mysite.polls.views.results', args=(p.id,)))

But we using generic view we get rid of the results() method, so shouldn't this be changed to this?:
return HttpResponseRedirect('/polls/%s/results/' % p.id)

Change History (1)

comment:1 by Chris Beaven, 18 years ago

Resolution: duplicate
Status: newclosed

Dupe of #4615

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