summaryrefslogtreecommitdiff
path: root/packages/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-05-18 20:54:39 -0500
committerDan McGee <dan@archlinux.org>2012-05-18 21:36:11 -0500
commitef561bcd705e1047b1a81364ac143ce52c60defa (patch)
tree244bcfd3de95e4a668444cc834b0e7f3ac7536c9 /packages/models.py
parent06f1bb99617e532f6b39c135370de79be7c270fa (diff)
Add new depends model
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/models.py')
-rw-r--r--packages/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/models.py b/packages/models.py
index a4d2a556..c7b1cab4 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -268,6 +268,13 @@ class RelatedToBase(models.Model):
ordering = ['name']
+class Depend(RelatedToBase):
+ pkg = models.ForeignKey('main.Package', related_name='depends_new')
+ comparison = models.CharField(max_length=255, default='')
+ optional = models.BooleanField(default=False)
+ description = models.TextField(null=True, blank=True)
+
+
class Conflict(RelatedToBase):
pkg = models.ForeignKey('main.Package', related_name='conflicts')
comparison = models.CharField(max_length=255, default='')