fix lot render

This commit is contained in:
Cayo Puigdefabregas 2022-05-19 10:58:07 +02:00
parent a919c0ee26
commit cea143dcbe
1 changed files with 2 additions and 2 deletions

View File

@ -106,11 +106,11 @@ class Lot(Thing):
@property @property
def is_incoming(self): 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 @property
def is_outgoing(self): 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 @classmethod
def descendantsq(cls, id): def descendantsq(cls, id):