Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#12485 closed (fixed)

Add Links to poll tutorial

Reported by: gungadin Owned by: Derek Willis
Component: Documentation Version: dev
Severity: Keywords: link, suggestion, tutorial
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Just a suggestion to make the poll tutorial application a little more user friendly. Just need to add/modify a couple lines on two of the templates. The first lets the user vote again on the poll after he votes. The second turns the listing of the polls on the index page into links so that the user can click the link to pick his poll.

On the results.html add the line at the bottom:

<a href="http://127.0.0.1:8000/polls/{{ object.id }}/">Vote again?</a>

And on the poll_list.html or index.html add this line in the middle:

<li><a href="http://127.0.0.1:8000/polls/{{ object.id }}/">{{ object.question }}</a></li>

Thanks for the great tutorial. It really makes it easy to learn django. I'm looking forward to the other tutorials.

Attachments (2)

0001-added-links-to-poll-tutorial.patch (1.7 KB ) - added by Derek Willis 14 years ago.
12485.patch (1.7 KB ) - added by Derek Willis 14 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by Russell Keith-Magee, 14 years ago

Triage Stage: UnreviewedAccepted

by Derek Willis, 14 years ago

comment:2 by Derek Willis, 14 years ago

milestone: 1.3
Owner: changed from nobody to Derek Willis
Version: 1.1SVN

comment:3 by Derek Willis, 14 years ago

Status: newassigned

by Derek Willis, 14 years ago

Attachment: 12485.patch added

comment:4 by Derek Willis, 14 years ago

Has patch: set

comment:5 by Derek Willis, 14 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by jbronn, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [12527]) Fixed #12485 -- Added links to polls templates in tutorial. Thanks, gungadin for ticket and Derek Willis for patch.

comment:7 by Jacob, 12 years ago

milestone: 1.3

Milestone 1.3 deleted

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