From 57ca10be3854e23977df55586fed9ff4a7bb8493 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 21 Apr 2021 14:43:21 +0200 Subject: [PATCH] fixing model tradenote --- ereuse_devicehub/resources/action/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/action/models.py b/ereuse_devicehub/resources/action/models.py index cc3cc3fc..7f542c6a 100644 --- a/ereuse_devicehub/resources/action/models.py +++ b/ereuse_devicehub/resources/action/models.py @@ -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,