ku-polls/polls/migrations/0007_question_participant_count.py
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

20 lines
573 B
Python

# Generated by Django 4.2.4 on 2023-09-09 08:36
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0006_question_down_vote_count_question_up_vote_count'),
]
operations = [
migrations.AddField(
model_name='question',
name='participant_count',
field=models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(2147483647)]),
),
]