Skip to content
Snippets Groups Projects

bugfix: also saving Monitor info for status history

Merged Nico Vermaas requested to merge SDC-438-filters-on-dashboard into master
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading