summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/models.py b/packages/models.py
index 65aa8f4..1959183 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -416,6 +416,13 @@ class Depend(RelatedToBase):
deptype = models.CharField(max_length=1, default='D',
choices=DEPTYPE_CHOICES)
+ def __unicode__(self):
+ '''For depends, we may also have a description and a modifier.'''
+ to_str = super(Depend, self).__unicode__()
+ if self.description:
+ return u'%s: %s' % (to_str, self.description)
+ return to_str
+
class Conflict(RelatedToBase):
pkg = models.ForeignKey(Package, related_name='conflicts')