From ec8a88a7a86c99b7c54a82b67f900406ffeb965a Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 19 Jan 2020 01:23:56 +0000 Subject: [PATCH] Allow deleting releases with broken tasks --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index df1e5a11..732f38d0 100644 --- a/app/models.py +++ b/app/models.py @@ -786,7 +786,7 @@ class PackageRelease(db.Model): if not (isOwner or user.rank.atLeast(UserRank.EDITOR)): return False - if not self.package.approved: + if not self.package.approved or self.task_id is not None: return True count = PackageRelease.query \