Skip to content

Commit

Permalink
Add a __repr__ to make debugging tests easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Aug 17, 2013
1 parent e0c702e commit be0ffc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tahrir_api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class Person(DeclarativeBase):
# indicates that they have not been ranked yet at all.
rank = Column(Integer, default=None)

def __repr__(self):
return "<Person: '%s <%s>'" % (self.nickname, self.email)

@property
def gravatar_link(self):
d, s = 'mm', 24
Expand Down

0 comments on commit be0ffc2

Please sign in to comment.