diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-22 20:46:28 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-22 20:46:28 -0500 |
commit | 06550061b6c01a5def1b5b418fe9cdcfb4bd0a99 (patch) | |
tree | 0bc36ed305d0b59f29797fae56e8238a89199cfa /main/models.py | |
parent | b9c6451f88caa35ab39b6468a99b147d7d7f4937 (diff) |
Add index to todo list date added
Signed-off-by: Dan McGee <dan@archlinux.org>
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 |