Changeset - e011981ff485
[Not reviewed]
0 1 0
Lance Edgar - 5 years ago 2019-08-06 18:53:14
ledgar@techsupport.coop
Fix output for `str(Employee)`
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general) First comment
corepos/db/model.py
Show inline comments
 
@@ -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):
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now