models: use shorter unicode representations
This commit is contained in:
parent
d9e9c66319
commit
996a398b46
@ -257,8 +257,7 @@ class ServiceUpdater(models.Model):
|
|||||||
created_by = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='serviceupdater')
|
created_by = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='serviceupdater')
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return u"%s service updater" % (
|
return u"%s" % (self.name, )
|
||||||
self.name)
|
|
||||||
|
|
||||||
|
|
||||||
class ServiceUpdaterHostConfig(models.Model):
|
class ServiceUpdaterHostConfig(models.Model):
|
||||||
@ -292,5 +291,4 @@ class ServiceUpdaterHostConfig(models.Model):
|
|||||||
created_by = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='serviceupdaterhostconfigs')
|
created_by = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='serviceupdaterhostconfigs')
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return u"%s service updater data for %s" % (
|
return u"%s (%s)" % (self.hostname, self.service.name, )
|
||||||
self.service.name, unicode(self.host))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user