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
|
@ -142,11 +142,14 @@ class Vendor(Base):
|
||||||
vendorID = sa.Column(sa.Integer(), primary_key=True, autoincrement=False, nullable=False)
|
vendorID = sa.Column(sa.Integer(), primary_key=True, autoincrement=False, nullable=False)
|
||||||
id = orm.synonym('vendorID')
|
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(
|
contact = orm.relationship(
|
||||||
'VendorContact',
|
'VendorContact',
|
||||||
|
|
Loading…
Reference in a new issue