summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-06 03:03:02 +0200
committereliott <eliott@cactuswax.net>2008-04-06 03:03:02 +0200
commit0930d0cc7403df2bee625f8458d618aab9c767c1 (patch)
tree6f0e84dc396683831c6df30cbaeecc7ad5ee6038
parentcd087d4779da3bb4e3463d4305855150c1941399 (diff)
downloadarchweb-0930d0cc7403df2bee625f8458d618aab9c767c1.tar.gz
archweb-0930d0cc7403df2bee625f8458d618aab9c767c1.tar.xz
cleanup
-rw-r--r--main/models.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/models.py b/main/models.py
index 2fa7187..a1314f8 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):