Make sure miscellaneous identifiers are all lowercase
This commit is contained in:
parent
b179b5f2d3
commit
e339e0fb56
|
@ -81,5 +81,5 @@ class Miscellaneous(models.Model):
|
|||
|
||||
def clean(self):
|
||||
if self.identifier:
|
||||
self.identifier = self.identifier.strip()
|
||||
self.identifier = self.identifier.strip().lower()
|
||||
self.description = self.description.strip()
|
||||
|
|
|
@ -88,7 +88,7 @@ class ServiceMonitor(ServiceBackend):
|
|||
|
||||
def execute(self, *args, **kwargs):
|
||||
log = super(ServiceMonitor, self).execute(*args, **kwargs)
|
||||
if log.state == BackendLog.SUCCESS:
|
||||
if log.state == log.SUCCESS:
|
||||
self.store(log)
|
||||
return log
|
||||
|
||||
|
|
Loading…
Reference in New Issue