Mark a build as "production" whenever a build output is created

This commit is contained in:
Oliver Walters 2020-11-03 20:43:49 +11:00
parent ac03dab8de
commit 8d0845d92b

View File

@ -526,6 +526,10 @@ class Build(MPTTModel):
is_building=True
)
if self.status == BuildStatus.PENDING:
self.status = BuildStatus.PRODUCTION
self.save()
@transaction.atomic
def deleteBuildOutput(self, output):
"""