Jeremy Bowman 8f76939f54 [1.11.x] Fixed #29193 -- Prevented unnecessary foreign key drops when altering a unique field.
Stopped dropping and recreating foreign key constraints on other fields
in the same table as the one which is actually being altered in an
AlterField operation.

Regression in c3e0adcad8d8ba94b33cabd137056166ed36dae0.

Backport of ee17bb8a67a9e7e688da6e6f4b3be1b3a69c09b0 from master
2018-04-11 23:24:42 -04:00
..
2015-08-22 20:25:42 +02:00
2016-11-14 12:30:46 -05:00
2015-08-22 20:25:42 +02:00
2016-11-14 12:30:46 -05:00
2016-11-14 12:30:46 -05:00
2015-02-06 12:58:45 +01:00

To run the test suite, first, create and activate a virtual environment. Then install some requirements and run the tests:

$ cd tests
$ pip install -e ..
$ pip install -r requirements/py3.txt  # or py2.txt
$ ./runtests.py

For more information about the test suite, see https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.