Commit 47be54c6 authored by Damien Lespiau's avatar Damien Lespiau
Browse files

series: Update last_updated timestamp when receiving a new test result



last_updated should be updated whenever we change something about that
series. Because the test results are on the revision, we need to
manually save the corresponding series to bump its timestamp.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
parent a04823aa
......@@ -571,6 +571,7 @@ class SeriesRevision(models.Model):
if results.count() > 0:
self.test_state = max([r.state for r in results])
self.save()
self.series.save()
def __unicode__(self):
return "Revision " + str(self.version)
......
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