Commit 589b6d7c authored by ibuler's avatar ibuler

update

parent 649509de
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment