-
Notifications
You must be signed in to change notification settings - Fork 0
Iteration 2 Plan
Pinpimarn Pinpisit edited this page Oct 3, 2022
·
3 revisions
Improve the navigation and page layout, add an end date for a poll, and add some useful methods so that views can query a poll using methods instead of testing attributes directly. Moreover, the another goal is externalize configuration data for security and portability.
- The Question class has
end_dateattribute that is the last day that the poll can be voted. - In Queston class has two more methods:
-
is_publishedreturns True if current date is on or afterpub_date. -
can_votereturns True if voting is allowed for this question.
- Redirect to index page when the user get into the voting page that is not allowed
- User can see the result without voting.
- The page navigation and appearance are improved.
- Application should allow a user to vote on a poll, count the result correctly, and shows the total vote and the result. It should also displays all sorted poll questions.
- All page navigation link corectly.
- Page layout is better than the former version.
- No secret code reveal in repository.
- The web app passes all unit tests.
I've learned how to make navigation between pages and working on model.
Review your work and what you learned about applying a process and/or technology.
Summarize what you learned here. This is a reminder to yourself and an aid to other students.