Opened 22 months ago

Closed 22 months ago

Last modified 14 months 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 Changed 22 months ago by john@…

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

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

comment:2 Changed 14 months ago by cyberyt

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