Add proper support for str(Suspension)
This commit is contained in:
parent
0d81a41b54
commit
754d8697e8
|
@ -1469,6 +1469,10 @@ class Suspension(Base):
|
||||||
reason_code = sa.Column('reasoncode', sa.Integer(), nullable=True)
|
reason_code = sa.Column('reasoncode', sa.Integer(), nullable=True)
|
||||||
reason_object = orm.relationship(ReasonCode)
|
reason_object = orm.relationship(ReasonCode)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return "#{} on {}".format(self.card_number,
|
||||||
|
self.suspension_date)
|
||||||
|
|
||||||
|
|
||||||
class HouseCoupon(Base):
|
class HouseCoupon(Base):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue