ku-polls/polls/migrations/0004_alter_question_pub_date.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
512 B
Python

# Generated by Django 4.2.4 on 2023-09-09 08:15
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('polls', '0003_alter_choice_votes_alter_question_pub_date'),
]
operations = [
migrations.AlterField(
model_name='question',
name='pub_date',
field=models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='date published'),
),
]