Define output for str(MemberType)
This commit is contained in:
parent
1593c875a6
commit
1a0a25661b
|
@ -308,6 +308,7 @@ class Employee(Base):
|
||||||
birthdate = sa.Column(sa.DateTime(), nullable=True)
|
birthdate = sa.Column(sa.DateTime(), nullable=True)
|
||||||
|
|
||||||
|
|
||||||
|
@six.python_2_unicode_compatible
|
||||||
class MemberType(Base):
|
class MemberType(Base):
|
||||||
"""
|
"""
|
||||||
Represents a type of membership within the organization.
|
Represents a type of membership within the organization.
|
||||||
|
@ -326,6 +327,11 @@ class MemberType(Base):
|
||||||
|
|
||||||
ssi = sa.Column(sa.Boolean(), nullable=True)
|
ssi = sa.Column(sa.Boolean(), nullable=True)
|
||||||
|
|
||||||
|
salesCode = sa.Column(sa.Integer(), nullable=True)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.memDesc or ""
|
||||||
|
|
||||||
|
|
||||||
class Customer(Base):
|
class Customer(Base):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue