try to fix bug
This commit is contained in:
parent
bf455c40c9
commit
6bf419f59a
|
@ -127,11 +127,12 @@ class Lot(Thing):
|
||||||
if hasattr(self, 'trade'):
|
if hasattr(self, 'trade'):
|
||||||
return self.trade.user_to == g.user
|
return self.trade.user_to == g.user
|
||||||
return False
|
return False
|
||||||
# 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 == g.user)
|
if hasattr(self, 'trade'):
|
||||||
|
return self.trade.user_to == g.user
|
||||||
|
return False
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def descendantsq(cls, id):
|
def descendantsq(cls, id):
|
||||||
|
|
Reference in New Issue