diff --git a/app/models.py b/app/models.py index 02ae8876..aeca471e 100644 --- a/app/models.py +++ b/app/models.py @@ -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(), diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 2ed3a321..76a96ac0 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -47,7 +47,7 @@ {% if package.checkPerm(current_user, "EDIT_PACKAGE") %}