From cea143dcbe4ccb58b9d8c9202ebbb9730d3bd0ce Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 19 May 2022 10:58:07 +0200 Subject: [PATCH] fix lot render --- ereuse_devicehub/resources/lot/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/lot/models.py b/ereuse_devicehub/resources/lot/models.py index 88c68626..7b7da4e2 100644 --- a/ereuse_devicehub/resources/lot/models.py +++ b/ereuse_devicehub/resources/lot/models.py @@ -106,11 +106,11 @@ class Lot(Thing): @property def is_incoming(self): - return bool(self.trade and self.trade.user_to == current_user) + return bool(self.trade and self.trade.user_to == g.user) @property def is_outgoing(self): - return bool(self.trade and self.trade.user_from == current_user) + return bool(self.trade and self.trade.user_from == g.user) @classmethod def descendantsq(cls, id):