summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py
index ed136759..a7cc2335 100644
--- a/main/models.py
+++ b/main/models.py
@@ -314,13 +314,12 @@ class Signoff(models.Model):
class PackageFile(models.Model):
pkg = models.ForeignKey(Package)
- path = models.CharField(max_length=255)
is_directory = models.BooleanField(default=False)
directory = models.CharField(max_length=255)
filename = models.CharField(max_length=255, null=True, blank=True)
def __unicode__(self):
- return self.path
+ return "%s%s" % (self.directory, self.filename or '')
class Meta:
db_table = 'package_files'