change some sintaxis
This commit is contained in:
parent
15fa4546d1
commit
5cce2f4efb
|
@ -66,7 +66,7 @@ class TradeView():
|
||||||
|
|
||||||
# check than the user than want to do the action is one of the users
|
# check than the user than want to do the action is one of the users
|
||||||
# involved in the action
|
# involved in the action
|
||||||
if not g.user in [self.trade.user_from, self.trade.user_to]:
|
if g.user not in [self.trade.user_from, self.trade.user_to]:
|
||||||
txt = "You do not participate in this trading"
|
txt = "You do not participate in this trading"
|
||||||
raise ValidationError(txt)
|
raise ValidationError(txt)
|
||||||
|
|
||||||
|
|
Reference in New Issue