diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-06-27 21:16:38 -0400 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-06-27 21:16:38 -0400 |
commit | cd7fd7f515e1cc75f037feb95c87c6c0a794e081 (patch) | |
tree | 069d43736fea8b7b8c235cfad13645fd6b5b6b0f /main | |
parent | 3d40da381cccfb1e1b74becb9076e816f76c6f02 (diff) |
make package names unique
Diffstat (limited to 'main')
-rw-r--r-- | main/models.py | 2 |
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' |