Fix output for str(Employee)
This commit is contained in:
parent
c045aabadc
commit
e011981ff4
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue