mirror of
https://github.com/Sosokker/ku-polls.git
synced 2025-12-18 13:04:05 +01:00
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
181 lines
3.4 KiB
JSON
181 lines
3.4 KiB
JSON
[
|
|
{
|
|
"model": "polls.question",
|
|
"pk": 1,
|
|
"fields": {
|
|
"question_text": "Python vs C++, which one is better in your opinion?",
|
|
"short_description": "Cool kids have polls",
|
|
"long_description": "No description provide for this poll.",
|
|
"pub_date": "2023-08-28T13:38:42Z",
|
|
"end_date": "2025-09-24T22:56:52Z",
|
|
"up_vote_count": 0,
|
|
"down_vote_count": 0,
|
|
"participant_count": 0
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.question",
|
|
"pk": 2,
|
|
"fields": {
|
|
"question_text": "The chicken and the egg, which came first?",
|
|
"short_description": "Cool kids have polls",
|
|
"long_description": "No description provide for this poll.",
|
|
"pub_date": "2023-08-28T13:39:16Z",
|
|
"end_date": "2023-11-05T06:30:16Z",
|
|
"up_vote_count": 12,
|
|
"down_vote_count": 4,
|
|
"participant_count": 11
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.question",
|
|
"pk": 3,
|
|
"fields": {
|
|
"question_text": "Do you love Django?",
|
|
"short_description": "Cool kids have polls",
|
|
"long_description": "No description provide for this poll.",
|
|
"pub_date": "2023-11-07T15:40:31Z",
|
|
"end_date": "2023-09-20T13:41:33Z",
|
|
"up_vote_count": 3000,
|
|
"down_vote_count": 50,
|
|
"participant_count": 555
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.question",
|
|
"pk": 4,
|
|
"fields": {
|
|
"question_text": "So far so good?",
|
|
"short_description": "Cool kids have polls",
|
|
"long_description": "No description provide for this poll.",
|
|
"pub_date": "2023-09-09T06:30:50.690Z",
|
|
"end_date": "2023-09-30T12:54:30Z",
|
|
"up_vote_count": 0,
|
|
"down_vote_count": 0,
|
|
"participant_count": 234
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.question",
|
|
"pk": 5,
|
|
"fields": {
|
|
"question_text": "Do you love Django?",
|
|
"short_description": "Cool kids have polls",
|
|
"long_description": "No description provide for this poll.",
|
|
"pub_date": "2023-09-09T13:42:27.501Z",
|
|
"end_date": "2023-09-21T13:42:17Z",
|
|
"up_vote_count": 1,
|
|
"down_vote_count": 1,
|
|
"participant_count": 1
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 4,
|
|
"fields": {
|
|
"question": 2,
|
|
"choice_text": "Chicken",
|
|
"votes": 55
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 5,
|
|
"fields": {
|
|
"question": 2,
|
|
"choice_text": "Egg",
|
|
"votes": 56
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 6,
|
|
"fields": {
|
|
"question": 1,
|
|
"choice_text": "Python!",
|
|
"votes": 6
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 7,
|
|
"fields": {
|
|
"question": 1,
|
|
"choice_text": "C++",
|
|
"votes": 3
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 8,
|
|
"fields": {
|
|
"question": 3,
|
|
"choice_text": "Yeah for sure!",
|
|
"votes": 0
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 9,
|
|
"fields": {
|
|
"question": 3,
|
|
"choice_text": "nah",
|
|
"votes": 0
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 13,
|
|
"fields": {
|
|
"question": 4,
|
|
"choice_text": "Yes!",
|
|
"votes": 5
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 14,
|
|
"fields": {
|
|
"question": 4,
|
|
"choice_text": "No!",
|
|
"votes": 4
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 15,
|
|
"fields": {
|
|
"question": 4,
|
|
"choice_text": "Okay!",
|
|
"votes": 5
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 16,
|
|
"fields": {
|
|
"question": 4,
|
|
"choice_text": "Thank you!",
|
|
"votes": 2
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 17,
|
|
"fields": {
|
|
"question": 5,
|
|
"choice_text": "Yeah for sure!",
|
|
"votes": 2
|
|
}
|
|
},
|
|
{
|
|
"model": "polls.choice",
|
|
"pk": 18,
|
|
"fields": {
|
|
"question": 5,
|
|
"choice_text": "nah",
|
|
"votes": 2
|
|
}
|
|
}
|
|
]
|