Commit Graph

5 Commits

Author SHA1 Message Date
sosokker
356e78a839 Editable pub_date + docstring / format file with black.py 2023-09-10 21:52:46 +07:00
sosokker
1b996629da Refine UI/UX - Add new Feature (Model) - Refine View
1. Refine UI/UX
Apply Tailwinds
Rewrite all page

2. Add new feature to model
Add new field
- description - long - short
- use default + editable instead of auto_add_now
- track up vote
- Change timezone
- Add time left track
-Add participant
-Add up/down vote attribute

-- Choice
- Add total_vote
-Add calculate_percentage of vote

3. Refine View
-Redirect instead of home page
-Add context to result, detail view
-Apply ChartJS
-Delete home
2023-09-09 21:20:23 +07:00
sosokker
e0c7995f28 Add is_published, can_vote to QuestionModel/ Add test for can_vote, is_published
is_published -> Check if the specific question able to be published
can_vote -> Can vote or not, check it from pub time

Delete some unnecessary files
2023-09-05 21:25:04 +07:00
sosokker
df073ed6ce Create polls models and migrate 2023-08-28 18:57:49 +07:00
sosokker
be11909e59 Create the polls app. 2023-08-26 16:28:34 +07:00