Mark ForeignKeys as initially deferred references on SQLite3.
Review Request #10269 — Created Oct. 23, 2018 and submitted
Up until very recently, SQLite3 offered pretty limited capabilities for
altering tables, necessitating a reconstruction and re-import of data
for tables. The logic for this wasn't retaining any field references for
ForeignKeys. We now add those when constructing non-temporary tables
SQLite3 unit tests pass on Django 1.6 through 1.11 and 2.1 (with other
Added back some previously-unused imports from a previous change.
Revision 2 (+38 -13)
Checks run (2 succeeded)