При попытке выполнить следующую операцию:
for line in blines:
line.account = get_customer(line.AccountCode)
Я получаю сообщение об ошибке при попытке присвоить значение line.account
:
DetachedInstanceError: Parent instance <SunLedgerA at 0x16eda4d0> is not bound to a Session; lazy load operation of attribute 'account' cannot proceed
Я что-то делаю неправильно?