fixing model tradenote
This commit is contained in:
parent
da4a410f58
commit
57ca10be38
|
@ -1436,8 +1436,8 @@ class CancelReservation(Organize):
|
||||||
class TradeNote(JoinedTableMixin, ActionWithMultipleDevices):
|
class TradeNote(JoinedTableMixin, ActionWithMultipleDevices):
|
||||||
"""Note add to one trade"""
|
"""Note add to one trade"""
|
||||||
trade_id = db.Column(UUID(as_uuid=True),
|
trade_id = db.Column(UUID(as_uuid=True),
|
||||||
db.ForeignKey('trade.id'),
|
db.ForeignKey('trade.id'),
|
||||||
nullable=False)
|
nullable=False)
|
||||||
trade = db.relationship('Trade',
|
trade = db.relationship('Trade',
|
||||||
backref=backref('notes',
|
backref=backref('notes',
|
||||||
uselist=True,
|
uselist=True,
|
||||||
|
|
Reference in a new issue