summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/models.py8
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):