Make sure miscellaneous identifiers are all lowercase

This commit is contained in:
Marc Aymerich 2016-10-28 10:31:11 +00:00
parent b179b5f2d3
commit e339e0fb56
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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