Add release specific download URL
This commit is contained in:
@@ -608,6 +608,13 @@ class PackageRelease(db.Model):
|
||||
name=self.package.name,
|
||||
id=self.id)
|
||||
|
||||
def getDownloadURL(self):
|
||||
return url_for("download_release_page",
|
||||
author=self.package.author.username,
|
||||
name=self.package.name,
|
||||
id=self.id)
|
||||
|
||||
|
||||
def __init__(self):
|
||||
self.releaseDate = datetime.now()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user