Opened 17 years ago
Closed 17 years ago
#4628 closed (duplicate)
wrong HttpResponseRedirect parameters
Reported by: | 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)
Note:
See TracTickets
for help on using tickets.
Dupe of #4615