fix lot trade
This commit is contained in:
parent
74fe50b6fb
commit
4d416f426c
|
@ -2241,7 +2241,8 @@ class Trade(JoinedTableMixin, ActionWithMultipleTradeDocuments):
|
||||||
)
|
)
|
||||||
lot = relationship(
|
lot = relationship(
|
||||||
'Lot',
|
'Lot',
|
||||||
backref=backref('trade', lazy=True, uselist=False, cascade=CASCADE_OWN),
|
backref=backref('trade', lazy=False, uselist=False, cascade=CASCADE_OWN),
|
||||||
|
# backref=backref('trade', lazy=True, uselist=False, cascade=CASCADE_OWN),
|
||||||
primaryjoin='Trade.lot_id == Lot.id',
|
primaryjoin='Trade.lot_id == Lot.id',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Reference in New Issue