-
Notifications
You must be signed in to change notification settings - Fork 1
Iteration 2 Plan
Tawan Boonma edited this page Sep 12, 2021
·
2 revisions
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.
- Question class has
end_date
attribute tells the last day that can be vote. - In Question class has two methods:
-
is_published
returns True if current date is more than or equal topub_date
. -
can_vote
returns True if the poll is available.
- Redirect to index page when user get into unavailable question page.
- Poll result should display in form of chart.
- User can go to vote and results of each question from the polls index page.
- 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.
- All navigation links work correctly.
- Better page layout.
- No secret code reveal in repository.
- Application passes all unit tests.