[Change] 添加翻译,并添加用户登陆页面

This commit is contained in:
ibuler
2017-03-29 15:26:32 +08:00
parent a4ad9b49b9
commit 4e7b665ea8
13 changed files with 462 additions and 154 deletions

View File

@@ -99,7 +99,12 @@ class Asset(models.Model):
return False, warning
def to_json(self):
pass
return {
'id': self.id,
'hostname': self.hostname,
'ip': self.ip,
'port': self.port,
}
def _to_secret_json(self):
"""Ansible use it create inventory"""