Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21062 closed Cleanup/optimization (invalid)

Transition to Generic Views Reference to Changing Poll_ID to PK, Yet No change is visible

Reported by: john@… 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 john@…, 11 years ago

Resolution: invalid
Severity: Release blockerNormal
Status: newclosed

Figured out where the poll_id is defined, and realized that it HAD changed. So deleting the ticket.

comment:2 by cyberyt, 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.
Back to Top