diff --git a/corepos/db/model.py b/corepos/db/model.py index a72c6b98ee8ed057d8289d170c356c4030fa02f6..949d1c57327796e139ba2781465f00ea9c35098e 100644 --- a/corepos/db/model.py +++ b/corepos/db/model.py @@ -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):