From d818100da3f76c7d1b80be1af92287f44b37d6c5 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 31 Mar 2020 14:09:39 -0500 Subject: [PATCH] Fix `id` field for TaxRateComponent --- corepos/db/office_op/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/corepos/db/office_op/model.py b/corepos/db/office_op/model.py index b61bdd3..5d60fc3 100644 --- a/corepos/db/office_op/model.py +++ b/corepos/db/office_op/model.py @@ -260,7 +260,8 @@ class TaxRateComponent(Base): sa.ForeignKeyConstraint(['taxRateID'], ['taxrates.id']), ) - id = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False) + taxRateComponentID = sa.Column(sa.Integer(), primary_key=True, autoincrement=True, nullable=False) + id = orm.synonym('taxRateComponentID') tax_rate_id = sa.Column('taxRateID', sa.Integer()) tax_rate = orm.relationship(TaxRate, backref='components')