def assign_to_portfolio(self, portfolio_name=None):
assert self.order_id > <NUM_LIT:0>, '<STR_LIT>'<EOL>loan_ids = self.loans.keys()<EOL>order_ids = [self.order_id]*len(loan_ids)<EOL>return self.lc.assign_to_portfolio(portfolio_name, loan_ids, order_ids)<EOL>
Assign all the notes in this order to a portfolio

Parameters
----------
    portfolio_name -- The name of the portfolio to assign it to (new or existing)

Raises
------
LendingClubError

Returns
-------
boolean
    True on success