diff options
Diffstat (limited to 'main/models.py')
-rw-r--r-- | main/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index 24befddd..c37ea915 100644 --- a/main/models.py +++ b/main/models.py @@ -349,8 +349,9 @@ class Todolist(models.Model): creator = models.ForeignKey(User) name = models.CharField(max_length=255) description = models.TextField() - date_added = models.DateTimeField(auto_now_add=True) + date_added = models.DateTimeField(auto_now_add=True, db_index=True) objects = TodolistManager() + def __unicode__(self): return self.name |