mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
00e3b9a2a9
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture. |
||
---|---|---|
.. | ||
faulty_migrations | ||
migrations_test_apps | ||
test_migrations | ||
test_migrations_2 | ||
test_migrations_conflict | ||
test_migrations_squashed | ||
test_migrations_unmigdep | ||
__init__.py | ||
models.py | ||
test_autodetector.py | ||
test_base.py | ||
test_commands.py | ||
test_executor.py | ||
test_graph.py | ||
test_loader.py | ||
test_operations.py | ||
test_optimizer.py | ||
test_state.py | ||
test_writer.py |