diff options
author | eliott <eliott@cactuswax.net> | 2008-04-05 18:03:02 -0700 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-04-05 18:03:02 -0700 |
commit | 0930d0cc7403df2bee625f8458d618aab9c767c1 (patch) | |
tree | 6f0e84dc396683831c6df30cbaeecc7ad5ee6038 /main/models.py | |
parent | cd087d4779da3bb4e3463d4305855150c1941399 (diff) |
cleanup
Diffstat (limited to 'main/models.py')
-rw-r--r-- | main/models.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/models.py b/main/models.py index 2fa7187e..a1314f8b 100644 --- a/main/models.py +++ b/main/models.py @@ -200,9 +200,11 @@ class Package(models.Model): def required_by_urlize(self): urls = [] - requiredby = PackageDepend.objects.filter(depname=self.pkgname).order_by('depname') + requiredby = PackageDepend.objects.filter( + depname=self.pkgname).order_by('depname') for req in requiredby: - urls.append('<li><a href="/packages/%d/">%s</a></li>' % (req.pkg.id,req.pkg.pkgname)) + urls.append('<li><a href="/packages/%d/">%s</a></li>' % \ + (req.pkg.id,req.pkg.pkgname)) return ''.join(urls) def depends_urlize(self): @@ -220,7 +222,7 @@ class Package(models.Model): continue urls.append( '<li><a href="/packages/%d/">%s</a>%s</li>' % \ - (p.id,dep.depname,dep.depvcmp)) + (p.id,dep.depname,dep.depvcmp)) return ''.join(urls) class PackageFile(models.Model): |