Fix field warnings for Django 1.8 (with migration)
This commit is contained in:
parent
bfb0820606
commit
0f0505f24d
2 changed files with 26 additions and 2 deletions
|
@ -42,14 +42,14 @@ class List(models.Model):
|
|||
class Item(models.Model):
|
||||
title = models.CharField(max_length=140)
|
||||
list = models.ForeignKey(List)
|
||||
created_date = models.DateField(auto_now=True, auto_now_add=True)
|
||||
created_date = models.DateField(auto_now=True)
|
||||
due_date = models.DateField(blank=True, null=True, )
|
||||
completed = models.BooleanField(default=None)
|
||||
completed_date = models.DateField(blank=True, null=True)
|
||||
created_by = models.ForeignKey(User, related_name='todo_created_by')
|
||||
assigned_to = models.ForeignKey(User, related_name='todo_assigned_to')
|
||||
note = models.TextField(blank=True, null=True)
|
||||
priority = models.PositiveIntegerField(max_length=3)
|
||||
priority = models.PositiveIntegerField()
|
||||
|
||||
# Model method: Has due date for an instance of this object passed?
|
||||
def overdue_status(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue