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:
Lance Edgar 2020-03-06 13:47:32 -06:00
parent a12c9de415
commit deea31597c

View file

@ -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',