diff --git a/atdb/taskdatabase/models.py b/atdb/taskdatabase/models.py index 4ab91bf1e826348533b287cc50d603c3d207909d..d6c6c41c38dc2d2e7c8528d21f8d730d06f46b55 100644 --- a/atdb/taskdatabase/models.py +++ b/atdb/taskdatabase/models.py @@ -178,6 +178,9 @@ class Monitor(models.Model): ) latestMonitor.save() + # finally save the Monitor info itself also + super(Monitor, self).save(*args, **kwargs) + # the representation of the value in the REST API def __str__(self): return str(self.name) + ' - ('+ self.hostname+') - '+str(self.timestamp) + ' - ' + self.status