[Bugfix] 修复授权和资产的一部分bug

This commit is contained in:
ibuler
2017-12-19 19:38:09 +08:00
parent b0eace6ad8
commit 3f89701b84
18 changed files with 607 additions and 537 deletions

View File

@@ -87,7 +87,7 @@ class Asset(models.Model):
comment = models.TextField(max_length=128, default='', blank=True, verbose_name=_('Comment'))
def __str__(self):
return '%s <%s: %s>' % (self.hostname, self.ip, self.port)
return self.hostname
@property
def is_valid(self):