From 473a7a02de134a7a80abc73700dd1585416380dd Mon Sep 17 00:00:00 2001 From: Santiago L Date: Wed, 2 Mar 2022 18:51:04 +0100 Subject: [PATCH] Update ereuse_devicehub/inventory/forms.py --- ereuse_devicehub/inventory/forms.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ereuse_devicehub/inventory/forms.py b/ereuse_devicehub/inventory/forms.py index e5775d4b..7702be79 100644 --- a/ereuse_devicehub/inventory/forms.py +++ b/ereuse_devicehub/inventory/forms.py @@ -724,9 +724,6 @@ class TradeForm(NewActionForm): self.user_from.render_kw['data-email'] = g.user.email self.user_to.render_kw['data-email'] = g.user.email self._lot = ( - # Lot.query.filter(Lot.id == self.lot.data) - # .filter(Lot.owner_id == g.user.id) - # .one() Lot.query.outerjoin(Trade) .filter(Lot.id == self.lot.data) .filter(or_(Trade.user_from == g.user,