From fd945513ac216e6f9ced42ebb3bb4a8962e26e22 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 28 Oct 2016 15:47:37 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA,=20=E5=9B=A0=E4=B8=BA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=BB=98=E8=AE=A4=E4=BC=9A=E5=8A=A0=E4=B8=8AClass?= =?UTF-8?q?=E7=9A=84Name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ops/models.py b/apps/ops/models.py index 365e1c3c0..70f44720e 100644 --- a/apps/ops/models.py +++ b/apps/ops/models.py @@ -18,7 +18,7 @@ class AnsiblePlay(models.Model): status_code = models.IntegerField(default=0, verbose_name=_('StatusCode')) def __unicode__(self): - return "AnsiblePlay: %s<%s>" % (self.name, self.uuid) + return "%s<%s>" % (self.name, self.uuid) class AnsibleTask(models.Model): @@ -27,7 +27,7 @@ class AnsibleTask(models.Model): name = models.CharField(max_length=128, blank=True, verbose_name=_('Name')) def __unicode__(self): - return "AnsibleTask: %s<%s>" % (self.name, self.uuid) + return "%s<%s>" % (self.name, self.uuid) def failed(self): pass @@ -47,7 +47,7 @@ class AnsibleHostResult(models.Model): no_host = models.TextField(blank=True, verbose_name=_('NoHost')) def __unicode__(self): - return "AnsibleHostResult: %s<%s>" % (self.name, str(self.status)) + return "%s<%s>" % (self.name, str(self.status)) @property def is_failed(self):