Fix output for str(Employee)

This commit is contained in:
Lance Edgar 2019-08-06 18:53:14 -05:00
parent c045aabadc
commit e011981ff4

View file

@ -320,6 +320,7 @@ class ProductFlag(Base):
return self.description or ''
@six.python_2_unicode_compatible
class Employee(Base):
"""
Represents an employee within the organization.
@ -346,6 +347,9 @@ class Employee(Base):
birthdate = sa.Column(sa.DateTime(), nullable=True)
def __str__(self):
return ' '.join([self.FirstName or '', self.LastName or '']).strip()
@six.python_2_unicode_compatible
class MemberType(Base):