Commit a64761cc authored by Damien Lespiau's avatar Damien Lespiau
Browse files

revisions: Handle updating the test state when deleting a result

While we don't have an API to delete a test result at the moment, it's
future proof to fix this straight away. That means we can also use it
when tinkering with the db from shell for instance.
Signed-off-by: default avatarDamien Lespiau <>
parent 0023064f
......@@ -647,8 +647,10 @@ class SeriesRevision(models.Model):
results = TestResult.objects.filter(revision=self)
if results.count() > 0:
self.test_state = max([r.state for r in results])
self.test_state = None
def human_name(self):
name =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment