summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-07-05 20:28:29 -0400
committerDusty Phillips <buchuki@gmail.com>2008-07-05 20:55:58 -0400
commit91b3ddd47f15851cd1686adbf9181fc46b9730a3 (patch)
tree6106296094b5b2552700ea8c07e84f015ed45f4c /main
parentb8221328c8de2dd2c673d4b0fd9a89d6d164d1d4 (diff)
downloadarchweb-91b3ddd47f15851cd1686adbf9181fc46b9730a3.tar.gz
archweb-91b3ddd47f15851cd1686adbf9181fc46b9730a3.zip
#10213 make package urls be pretty cool, if not awesome
Diffstat (limited to 'main')
-rw-r--r--main/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 12821f77..d4dee971 100644
--- a/main/models.py
+++ b/main/models.py
@@ -223,7 +223,8 @@ class Package(models.Model):
_maintainername.short_description = 'Maintainer'
def get_absolute_url(self):
- return '/packages/%i/' % self.id
+ return '/packages/%s/%s/%s/' % (self.repo.name.lower(),
+ self.arch.name, self.pkgname)
def get_requiredby(self):
"""