summaryrefslogtreecommitdiff
path: root/packages/models.py
diff options
context:
space:
mode:
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='')