Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#12485 closed (fixed)

Add Links to poll tutorial

Reported by: gungadin Owned by: dwillis
Component: Documentation Version: master
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: UI/UX:

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 dwillis 4 years ago.
12485.patch (1.7 KB) - added by dwillis 4 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 4 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Changed 4 years ago by dwillis

comment:2 Changed 4 years ago by dwillis

  • milestone set to 1.3
  • Owner changed from nobody to dwillis
  • Version changed from 1.1 to SVN

comment:3 Changed 4 years ago by dwillis

  • Status changed from new to assigned

Changed 4 years ago by dwillis

comment:4 Changed 4 years ago by dwillis

  • Has patch set

comment:5 Changed 4 years ago by dwillis

  • Triage Stage changed from Accepted to Ready for checkin

comment:6 Changed 4 years ago by jbronn

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:7 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.