summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-06-27 21:16:38 -0400
committerDusty Phillips <buchuki@gmail.com>2008-06-27 21:16:38 -0400
commitcd7fd7f515e1cc75f037feb95c87c6c0a794e081 (patch)
tree069d43736fea8b7b8c235cfad13645fd6b5b6b0f
parent3d40da381cccfb1e1b74becb9076e816f76c6f02 (diff)
make package names unique
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 6688031d..a38e9628 100644
--- a/main/models.py
+++ b/main/models.py
@@ -297,7 +297,7 @@ class Todolist(models.Model):
@property
def package_names(self):
- return '\n'.join([p.pkg.pkgname for p in self.packages])
+ return '\n'.join(set([p.pkg.pkgname for p in self.packages]))
class Meta:
db_table = 'todolists'