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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user