FWIW, deferToDatabase() ensures that the function it calls is wrapped in a transaction. However, _import_resources() explicitly manages its own transactions, and it breaks if it is called within a transaction. Unfortunately there was no test, no assertion, and no documentation stating this.
FWIW, deferToDatabase() ensures that the function it calls is wrapped in a transaction. However, _import_resources() explicitly manages its own transactions, and it breaks if it is called within a transaction. Unfortunately there was no test, no assertion, and no documentation stating this.