Skip to content

Iteration 2 Plan

Pinpimarn Pinpisit edited this page Oct 3, 2022 · 3 revisions

Goal

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.

Features

  1. The Question class has end_date attribute that is the last day that the poll can be voted.
  2. In Queston class has two more methods:
  • is_published returns True if current date is on or after pub_date.
  • can_vote returns True if voting is allowed for this question.
  1. Redirect to index page when the user get into the voting page that is not allowed
  2. User can see the result without voting.
  3. The page navigation and appearance are improved.

Evaluation Criteria

  1. 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.
  2. All page navigation link corectly.
  3. Page layout is better than the former version.
  4. No secret code reveal in repository.
  5. The web app passes all unit tests.

Retrospective Summary

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.

Clone this wiki locally