diff --git a/ereuse_devicehub/resources/lot/models.py b/ereuse_devicehub/resources/lot/models.py index 1e1c5afe..a8e957e2 100644 --- a/ereuse_devicehub/resources/lot/models.py +++ b/ereuse_devicehub/resources/lot/models.py @@ -127,11 +127,12 @@ class Lot(Thing): if hasattr(self, 'trade'): return self.trade.user_to == g.user return False - # 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 == g.user) + if hasattr(self, 'trade'): + return self.trade.user_to == g.user + return False @classmethod def descendantsq(cls, id):