Try out the "synonym" approach for all Vendor model fields
this seems promising, but let's see if anything breaks first
This commit is contained in:
		
							parent
							
								
									a12c9de415
								
							
						
					
					
						commit
						deea31597c
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -142,11 +142,14 @@ class Vendor(Base):
 | 
			
		|||
    vendorID = sa.Column(sa.Integer(), primary_key=True, autoincrement=False, nullable=False)
 | 
			
		||||
    id = orm.synonym('vendorID')
 | 
			
		||||
 | 
			
		||||
    name = sa.Column('vendorName', sa.String(length=50), nullable=True)
 | 
			
		||||
    vendorName = sa.Column(sa.String(length=50), nullable=True)
 | 
			
		||||
    name = orm.synonym('vendorName')
 | 
			
		||||
 | 
			
		||||
    abbreviation = sa.Column('vendorAbbreviation', sa.String(length=10), nullable=True)
 | 
			
		||||
    vendorAbbreviation = sa.Column(sa.String(length=10), nullable=True)
 | 
			
		||||
    abbreviation = orm.synonym('vendorAbbreviation')
 | 
			
		||||
 | 
			
		||||
    discount_rate = sa.Column('discountRate', sa.Float(), nullable=True)
 | 
			
		||||
    discountRate = sa.Column(sa.Float(), nullable=True)
 | 
			
		||||
    discount_rate = orm.synonym('discountRate')
 | 
			
		||||
 | 
			
		||||
    contact = orm.relationship(
 | 
			
		||||
        'VendorContact',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue