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:
Disco DeDisco
2026-01-02 22:19:08 -05:00
parent b4b2b43475
commit b09bec02dc
4 changed files with 49 additions and 7 deletions

View File

@@ -1,4 +1,9 @@
from django.db import models
class List(models.Model):
pass
class Item(models.Model):
text = models.TextField(default='')
list = models.ForeignKey(List, default=None, on_delete=models.CASCADE)