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)
|
||||
id = orm.synonym('vendorID')
|
||||
|
||||
vendorName = sa.Column(sa.String(length=50), nullable=True)
|
||||
name = orm.synonym('vendorName')
|
||||
name = sa.Column('vendorName', sa.String(length=50), nullable=True)
|
||||
|
||||
vendorAbbreviation = sa.Column(sa.String(length=10), nullable=True)
|
||||
abbreviation = orm.synonym('vendorAbbreviation')
|
||||
abbreviation = sa.Column('vendorAbbreviation', sa.String(length=10), nullable=True)
|
||||
|
||||
discountRate = sa.Column(sa.Float(), nullable=True)
|
||||
discount_rate = orm.synonym('discountRate')
|
||||
discount_rate = sa.Column('discountRate', sa.Float(), nullable=True)
|
||||
|
||||
contact = orm.relationship(
|
||||
'VendorContact',
|
||||
|
|
Loading…
Reference in a new issue