diff options
| author | Matthijs Kooijman <matthijs@stdin.nl> | 2019-12-02 00:42:06 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-02-14 13:18:06 +0100 |
| commit | 98f23a8af0be7e87535426c5c83058e2682bfdf8 (patch) | |
| tree | 5ac7e0c05a222d176fec8ae13c578d33dbdb6f3f /tests/admin_scripts | |
| parent | b330b918e979ea39a21d47b61172d112caf432c3 (diff) | |
Fixed #26552 -- Deferred constraint checks when reloading the database with data for tests.
deserialize_db_from_string() loads the full serialized database
contents, which might contain forward references and cycles. That
caused IntegrityError because constraints were checked immediately.
Now, it loads data in a transaction with constraint checks deferred
until the end of the transaction.
Diffstat (limited to 'tests/admin_scripts')
0 files changed, 0 insertions, 0 deletions
