summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-21 21:34:40 -0600
committerDan McGee <dan@archlinux.org>2011-02-22 16:00:51 -0600
commit4b12255d1cf52fcc1a98c230d940d0c1d3809ad2 (patch)
treeb2a0f99a378f0b700538546cc69b431a0861cdc2 /main/models.py
parenteeff0749d86ec403e55dc626034991638edad619 (diff)
Use new split package file fields everywhere
Signed-off-by: Dan McGee <dan@archlinux.org>
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'