Apply suggestions from code review
This commit is contained in:
parent
6eb3c62b83
commit
2cff0499cb
|
@ -730,7 +730,7 @@ class TradeForm(NewActionForm):
|
||||||
# both users exist, no further action is necessary
|
# both users exist, no further action is necessary
|
||||||
return
|
return
|
||||||
|
|
||||||
# Creating receiver phantom account
|
# Create receiver (to) phantom account
|
||||||
if user_from and not user_to:
|
if user_from and not user_to:
|
||||||
assert g.user.email == user_from
|
assert g.user.email == user_from
|
||||||
user = self.create_user(code)
|
user = self.create_user(code)
|
||||||
|
@ -738,7 +738,7 @@ class TradeForm(NewActionForm):
|
||||||
self.user_to = user
|
self.user_to = user
|
||||||
return
|
return
|
||||||
|
|
||||||
# Creating supplier phantom account
|
# Create supplier (from) phantom account
|
||||||
if not user_from and user_to:
|
if not user_from and user_to:
|
||||||
assert g.user.email == user_to
|
assert g.user.email == user_to
|
||||||
user = self.create_user(code)
|
user = self.create_user(code)
|
||||||
|
|
Reference in New Issue