summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-06-28 03:16:38 +0200
committerDusty Phillips <buchuki@gmail.com>2008-06-28 03:16:38 +0200
commitcd7fd7f515e1cc75f037feb95c87c6c0a794e081 (patch)
tree069d43736fea8b7b8c235cfad13645fd6b5b6b0f /main
parent3d40da381cccfb1e1b74becb9076e816f76c6f02 (diff)
downloadarchweb-cd7fd7f515e1cc75f037feb95c87c6c0a794e081.tar.gz
archweb-cd7fd7f515e1cc75f037feb95c87c6c0a794e081.tar.xz
make package names unique
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 6688031..a38e962 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'