Ensuring model's have a basic __repr__. (#499)
This commit is contained in:
@ -81,3 +81,6 @@ class Endpoint(db.Model):
|
||||
issues.append({'name': 'revoked', 'value': 'There is a revoked certificate attached to this endpoint consider replacing it.'})
|
||||
|
||||
return issues
|
||||
|
||||
def __repr__(self):
|
||||
return "Endpoint(name={name})".format(name=self.name)
|
||||
|
Reference in New Issue
Block a user