Fix output for str(Employee)
				
					
				
			This commit is contained in:
		
							parent
							
								
									c045aabadc
								
							
						
					
					
						commit
						e011981ff4
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -320,6 +320,7 @@ class ProductFlag(Base): | ||||||
|         return self.description or '' |         return self.description or '' | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @six.python_2_unicode_compatible | ||||||
| class Employee(Base): | class Employee(Base): | ||||||
|     """ |     """ | ||||||
|     Represents an employee within the organization. |     Represents an employee within the organization. | ||||||
|  | @ -346,6 +347,9 @@ class Employee(Base): | ||||||
| 
 | 
 | ||||||
|     birthdate = sa.Column(sa.DateTime(), nullable=True) |     birthdate = sa.Column(sa.DateTime(), nullable=True) | ||||||
| 
 | 
 | ||||||
|  |     def __str__(self): | ||||||
|  |         return ' '.join([self.FirstName or '', self.LastName or '']).strip() | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| @six.python_2_unicode_compatible | @six.python_2_unicode_compatible | ||||||
| class MemberType(Base): | class MemberType(Base): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar