Ensuring model's have a basic __repr__. (#499)

This commit is contained in:
kevgliss
2016-11-16 09:30:54 -08:00
committed by GitHub
parent 9eddaf66cb
commit e9219adfb5
8 changed files with 24 additions and 0 deletions

View File

@ -17,3 +17,6 @@ class Domain(db.Model):
id = Column(Integer, primary_key=True)
name = Column(String(256))
sensitive = Column(Boolean, default=False)
def __repr__(self):
return "Domain(name={name})".format(name=self.name)