django1/tests/model_options
Simon Charette 7cf9d15cf8 [2.1.x] Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks are enabled.
Prior to this change foreign key constraint references could be left pointing
at tables dropped during operations simulating unsupported table alterations
because of an unexpected failure to disable foreign key constraint checks.

SQLite3 does not allow disabling such checks while in a transaction so they
must be disabled beforehand.

Thanks ezaquarii for the report and Carlton and Tim for the review.

Backport of 315357ad25 from master.
2018-12-17 10:01:35 -05:00
..
models Sorted imports per isort 4.2.9. 2017-06-01 13:23:48 -04:00
__init__.py
test_default_related_name.py Refs #26230 -- Removed support for model name query lookups when using Meta.default_related_name. 2017-01-17 20:52:03 -05:00
test_tablespaces.py [2.1.x] Fixed #30023 -- Prevented SQLite schema alterations while foreign key checks are enabled. 2018-12-17 10:01:35 -05:00