code: def add_account(self, account):
          'portfolio add a account/stratetgy'
          if account.account_cookie not in self.account_list:
              if self.cash_available > account.init_cash:
                  account.portfolio_cookie = self.portfolio_cookie
                  account.user_cookie = self.user_cookie
                  self.cash.append(self.cash_available - account.init_cash)
                  self.account_list.append(account.account_cookie)
                  account.save()
                  return account
          else:
              pasf add_account(self, account):
          'portfolio add a account/stratetgy'
          if account.account_cookie not in self.account_list:
              if self.cash_available > account.init_cash:
                  account.portfolio_cookie = self.portfolio_cookie
                  account.user_cookie = self.user_cookie
                  self.cash.append(self.cash_available - account.init_cash)
                  self.account_list.append(account.account_cookie)
                  account.save()
                  return account
          else:
              pass
docs: portfolio add a account/stratetgy