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

Merge branch 'SDC-438-filters-on-dashboard' into 'master'

bugfix: also saving Monitor info for status history

See merge request !188
parents 6a04a3e1 50af5d9e
No related branches found
No related tags found
3 merge requests!189Master,!188bugfix: also saving Monitor info for status history,!185Master
Pipeline #24380 passed
...@@ -178,6 +178,9 @@ class Monitor(models.Model): ...@@ -178,6 +178,9 @@ class Monitor(models.Model):
) )
latestMonitor.save() latestMonitor.save()
# finally save the Monitor info itself also
super(Monitor, self).save(*args, **kwargs)
# the representation of the value in the REST API # the representation of the value in the REST API
def __str__(self): def __str__(self):
return str(self.name) + ' - ('+ self.hostname+') - '+str(self.timestamp) + ' - ' + self.status 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.
Please register or to comment