fixing model tradenote

This commit is contained in:
Cayo Puigdefabregas 2021-04-21 14:43:21 +02:00
parent da4a410f58
commit 57ca10be38
1 changed files with 2 additions and 2 deletions

View File

@ -1436,8 +1436,8 @@ class CancelReservation(Organize):
class TradeNote(JoinedTableMixin, ActionWithMultipleDevices):
"""Note add to one trade"""
trade_id = db.Column(UUID(as_uuid=True),
db.ForeignKey('trade.id'),
nullable=False)
db.ForeignKey('trade.id'),
nullable=False)
trade = db.relationship('Trade',
backref=backref('notes',
uselist=True,