apps.dashboard.models, .tests & .views all handle new list creation when a new task item is added (but for now, undesirably, always a new list for each task item; made migrations accordingly
This commit is contained in:
25
apps/dashboard/migrations/0003_list_item_list.py
Normal file
25
apps/dashboard/migrations/0003_list_item_list.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# Generated by Django 6.0 on 2026-01-03 03:05
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dashboard', '0002_item_text'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='List',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='item',
|
||||
name='list',
|
||||
field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='dashboard.list'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user