from django.db import models

# Create your models here.
class TodoList(models.Model):

    list_name = models.CharField(max_length=100)
    def __str__(self):
        return f"{self.list_name}"

class TodoItem(models.Model):
    title = models.CharField(max_length=100)
    checked =models.BooleanField(default=False)
    due_date = models.DateTimeField()
    todo_list = models.ForeignKey(to=TodoList,on_delete=models.CASCADE)


81664b91ac67aa4fa109d59548d8ab923d694b26
<mask token>


class TodoItem(models.Model):
    title = models.CharField(max_length=100)
    checked = models.BooleanField(default=False)
    due_date = models.DateTimeField()
    todo_list = models.ForeignKey(to=TodoList, on_delete=models.CASCADE)

<mask token>


class TodoList(models.Model):
    <mask token>
    <mask token>


class TodoItem(models.Model):
    title = models.CharField(max_length=100)
    checked = models.BooleanField(default=False)
    due_date = models.DateTimeField()
    todo_list = models.ForeignKey(to=TodoList, on_delete=models.CASCADE)

<mask token>


class TodoList(models.Model):
    list_name = models.CharField(max_length=100)

    def __str__(self):
        return f'{self.list_name}'


class TodoItem(models.Model):
    title = models.CharField(max_length=100)
    checked = models.BooleanField(default=False)
    due_date = models.DateTimeField()
    todo_list = models.ForeignKey(to=TodoList, on_delete=models.CASCADE)

from django.db import models


class TodoList(models.Model):
    list_name = models.CharField(max_length=100)

    def __str__(self):
        return f'{self.list_name}'


class TodoItem(models.Model):
    title = models.CharField(max_length=100)
    checked = models.BooleanField(default=False)
    due_date = models.DateTimeField()
    todo_list = models.ForeignKey(to=TodoList, on_delete=models.CASCADE)

from django.db import models

# Create your models here.
class TodoList(models.Model):

    list_name = models.CharField(max_length=100)
    def __str__(self):
        return f"{self.list_name}"

class TodoItem(models.Model):
    title = models.CharField(max_length=100)
    checked =models.BooleanField(default=False)
    due_date = models.DateTimeField()
    todo_list = models.ForeignKey(to=TodoList,on_delete=models.CASCADE)

