Completed field on Item should default to False
This commit is contained in:
parent
be9a87fc0f
commit
cc1a48ee6f
2 changed files with 23 additions and 1 deletions
22
todo/migrations/0005_auto_20180212_2325.py
Normal file
22
todo/migrations/0005_auto_20180212_2325.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Generated by Django 2.0.2 on 2018-02-12 23:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('todo', '0004_rename_list_tasklist'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='tasklist',
|
||||
options={'ordering': ['name'], 'verbose_name_plural': 'Task Lists'},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='item',
|
||||
name='completed',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
|
@ -35,7 +35,7 @@ class Item(models.Model):
|
|||
task_list = models.ForeignKey(TaskList, on_delete=models.CASCADE, null=True)
|
||||
created_date = models.DateField(auto_now=True)
|
||||
due_date = models.DateField(blank=True, null=True, )
|
||||
completed = models.BooleanField(default=None)
|
||||
completed = models.BooleanField(default=False)
|
||||
completed_date = models.DateField(blank=True, null=True)
|
||||
created_by = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='todo_created_by', on_delete=models.CASCADE)
|
||||
assigned_to = models.ForeignKey(
|
||||
|
|
Loading…
Reference in a new issue