summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-07 13:05:59 -0600
committerDan McGee <dan@archlinux.org>2011-02-15 13:51:11 -0600
commit30756f13efccef1e3b2cdbf9ac9855abc77b065c (patch)
treed980f72e7bf74785a4724cb15c8e67b703caea7f /main/models.py
parent376ce4a69e016d13eff28589a5caa627bf7c451b (diff)
Allow optional deps in depends model
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index dc73c986..56e5712d 100644
--- a/main/models.py
+++ b/main/models.py
@@ -322,6 +322,12 @@ class PackageDepend(models.Model):
pkg = models.ForeignKey(Package)
depname = models.CharField(max_length=255, db_index=True)
depvcmp = models.CharField(max_length=255)
+ optional = models.BooleanField(default=False)
+ description = models.TextField(null=True, blank=True)
+
+ def __unicode__(self):
+ return "%s%s" % (depname, depvcmp)
+
class Meta:
db_table = 'package_depends'