Fix suggest changes link

This commit is contained in:
rubenwardy
2018-03-24 02:49:30 +00:00
parent cd77ad6050
commit 287c9e5097
3 changed files with 9 additions and 1 deletions

View File

@@ -177,6 +177,11 @@ class Package(db.Model):
type=self.type.toName(),
author=self.author.username, name=self.name)
def getCreateEditRequestURL(self):
return url_for("create_editrequest_page",
ptype=self.type.toName(),
author=self.author.username, name=self.name)
def getDownloadURL(self):
return url_for("package_download_page",
type=self.type.toName(),