Skip to content
Snippets Groups Projects
Commit 50af5d9e authored by Nico Vermaas's avatar Nico Vermaas
Browse files

bugfix: also saving Monitor info for status history

parent 14473804
No related branches found
No related tags found
2 merge requests!189Master,!188bugfix: also saving Monitor info for status history
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment