diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-07-05 20:28:29 -0400 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-07-05 20:55:58 -0400 |
commit | 91b3ddd47f15851cd1686adbf9181fc46b9730a3 (patch) | |
tree | 6106296094b5b2552700ea8c07e84f015ed45f4c /main/models.py | |
parent | b8221328c8de2dd2c673d4b0fd9a89d6d164d1d4 (diff) |
#10213 make package urls be pretty cool, if not awesome
Diffstat (limited to 'main/models.py')
-rw-r--r-- | main/models.py | 3 |
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): """ |