Skip to content

Iteration 2 Plan

Tawan Boonma edited this page Sep 12, 2021 · 2 revisions

Goal

Improve the page layout and also add the end date of voting on a poll. Make a new order by available polls will be on top and keep the unavailable at the end. Another objective is to externalize configuration data for security.

Features

  1. Question class has end_date attribute tells the last day that can be vote.
  2. In Question class has two methods:
  • is_published returns True if current date is more than or equal to pub_date.
  • can_vote returns True if the poll is available.
  1. Redirect to index page when user get into unavailable question page.
  2. Poll result should display in form of chart.
  3. User can go to vote and results of each question from the polls index page.

Acceptance Criteria

  1. Application can displays all published poll questions that are already sorted, allows a visitor to submit a response on a question, count a vote correctly, and shows the results of the total vote of each question.
  2. All navigation links work correctly.
  3. Better page layout.
  4. No secret code reveal in repository.
  5. Application passes all unit tests.
Clone this wiki locally