From 2cff0499cbf3a0295e57f667fef0828e8fe673b4 Mon Sep 17 00:00:00 2001 From: Santiago L Date: Tue, 22 Feb 2022 11:13:00 +0100 Subject: [PATCH] Apply suggestions from code review --- ereuse_devicehub/inventory/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/inventory/forms.py b/ereuse_devicehub/inventory/forms.py index a997040e..79744842 100644 --- a/ereuse_devicehub/inventory/forms.py +++ b/ereuse_devicehub/inventory/forms.py @@ -730,7 +730,7 @@ class TradeForm(NewActionForm): # both users exist, no further action is necessary return - # Creating receiver phantom account + # Create receiver (to) phantom account if user_from and not user_to: assert g.user.email == user_from user = self.create_user(code) @@ -738,7 +738,7 @@ class TradeForm(NewActionForm): self.user_to = user return - # Creating supplier phantom account + # Create supplier (from) phantom account if not user_from and user_to: assert g.user.email == user_to user = self.create_user(code)