summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-11 19:50:08 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-11 19:50:08 -0400
commit7dedeeafd5b2e34f05bd75e548ca56942919c668 (patch)
tree57a9310a4f540772a93a7dcbc80cff0e1384d08d /main
parentf260843deb371a7d2ef5a265f52e643fcf64f86f (diff)
simplify both look and code for dashboard
Diffstat (limited to 'main')
-rw-r--r--main/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py
index 663ea11e..c62ac206 100644
--- a/main/models.py
+++ b/main/models.py
@@ -40,7 +40,7 @@ class UserProfile(models.Model):
### Manager Classes ###
#######################
class TodolistManager(models.Manager):
- def get_incomplete(self):
+ def incomplete(self):
return self.filter(todolistpkg__complete=False).distinct()
class PackageManager(models.Manager):
@@ -237,7 +237,7 @@ class PackageDepend(models.Model):
class Todolist(models.Model):
id = models.AutoField(primary_key=True)
- creator = models.ForeignKey(User, related_name='todolist_creator')
+ creator = models.ForeignKey(User)
name = models.CharField(max_length=255)
description = models.TextField()
date_added = models.DateField(auto_now_add=True)