#21062 closed Cleanup/optimization (invalid)
Transition to Generic Views Reference to Changing Poll_ID to PK, Yet No change is visible
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.6-beta-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
https://docs.djangoproject.com/en/dev/intro/tutorial04/
On the above page, near the bottom, there's a bullet point which reads:
* The DetailView generic view expects the primary key value captured from the URL to be called "pk", so we’ve changed poll_id to pk for the generic views.
I may be missing the reference to this change, but have yet to discover it.
Change History (2)
comment:1 by , 11 years ago
Resolution: | → invalid |
---|---|
Severity: | Release blocker → Normal |
Status: | new → closed |
comment:2 by , 11 years ago
I also came here regarding that, I think the bullet point should be moved up, or make an explicit reference to that it's talking about urls.py and not views.py?
Note:
See TracTickets
for help on using tickets.
Figured out where the poll_id is defined, and realized that it HAD changed. So deleting the ticket.