Changeset 1a0a256 in pycorepos


Ignore:
Timestamp:
03/06/19 18:35:17 (6 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
57a1af8
Parents:
1593c87
Message:

Define output for str(MemberType)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • corepos/db/model.py

    r1593c87 r1a0a256  
    309309
    310310
     311@six.python_2_unicode_compatible
    311312class MemberType(Base):
    312313    """
     
    326327
    327328    ssi = sa.Column(sa.Boolean(), nullable=True)
     329
     330    salesCode = sa.Column(sa.Integer(), nullable=True)
     331
     332    def __str__(self):
     333        return self.memDesc or ""
    328334
    329335
Note: See TracChangeset for help on using the changeset viewer.