summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-22 04:34:40 +0100
committerDan McGee <dan@archlinux.org>2011-02-22 23:00:51 +0100
commit4b12255d1cf52fcc1a98c230d940d0c1d3809ad2 (patch)
treeb2a0f99a378f0b700538546cc69b431a0861cdc2 /main/models.py
parenteeff0749d86ec403e55dc626034991638edad619 (diff)
downloadarchweb-4b12255d1cf52fcc1a98c230d940d0c1d3809ad2.tar.gz
archweb-4b12255d1cf52fcc1a98c230d940d0c1d3809ad2.tar.xz
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 ed13675..a7cc233 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'