mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-02 07:03:40 +00:00
update
This commit is contained in:
parent
649509dec1
commit
589b6d7cfe
@ -73,6 +73,8 @@ class Asset(models.Model):
|
||||
def __unicode__(self):
|
||||
return '%(ip)s:%(port)s' % {'ip': self.ip, 'port': self.port}
|
||||
|
||||
__str__ = __unicode__()
|
||||
|
||||
@property
|
||||
def is_valid(self):
|
||||
warning = ''
|
||||
@ -82,7 +84,7 @@ class Asset(models.Model):
|
||||
return True, ''
|
||||
return False, warning
|
||||
|
||||
def json(self):
|
||||
def to_json(self):
|
||||
pass
|
||||
|
||||
class Meta:
|
||||
|
Loading…
Reference in New Issue
Block a user