Revert "Try out the "synonym" approach for all Vendor model fields"
This reverts commit deea31597c
.
we'll keep the synonym in place for `vendorID` but the rest of these just
caused problems, e.g. with tailbone grids
This commit is contained in:
parent
3a440d20bc
commit
9b429eb293
|
@ -142,14 +142,11 @@ 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')
|
||||||
|
|
||||||
vendorName = sa.Column(sa.String(length=50), nullable=True)
|
name = sa.Column('vendorName', sa.String(length=50), nullable=True)
|
||||||
name = orm.synonym('vendorName')
|
|
||||||
|
|
||||||
vendorAbbreviation = sa.Column(sa.String(length=10), nullable=True)
|
abbreviation = sa.Column('vendorAbbreviation', sa.String(length=10), nullable=True)
|
||||||
abbreviation = orm.synonym('vendorAbbreviation')
|
|
||||||
|
|
||||||
discountRate = sa.Column(sa.Float(), nullable=True)
|
discount_rate = sa.Column('discountRate', sa.Float(), nullable=True)
|
||||||
discount_rate = orm.synonym('discountRate')
|
|
||||||
|
|
||||||
contact = orm.relationship(
|
contact = orm.relationship(
|
||||||
'VendorContact',
|
'VendorContact',
|
||||||
|
|
Loading…
Reference in a new issue