From 8dcbcd8b626fcade29f3bce8ab597de6380c7c6c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 8 Jul 2020 23:42:30 +0100 Subject: Add ability for users to remove themselves as maintainers --- app/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models.py') diff --git a/app/models.py b/app/models.py index 0cb90c9..56adc8e 100644 --- a/app/models.py +++ b/app/models.py @@ -645,6 +645,10 @@ class Package(db.Model): return url_for("packages.edit_maintainers", author=self.author.username, name=self.name) + def getRemoveSelfMaintainerURL(self): + return url_for("packages.remove_self_maintainers", + author=self.author.username, name=self.name) + def getDownloadRelease(self, version=None): for rel in self.releases: if rel.approved and (version is None or -- cgit v1.2.3