django1/django/db/migrations
Simon Charette 06889d6206 Fixed #31499 -- Stored ModelState.fields into a dict.
This allows the removal of its O(n) .get_field_by_name method and many
other awkward access patterns.

While fields were initially stored in a list to preserve the initial
model definiton field ordering the auto-detector doesn't take field
ordering into account and no operations exists to reorder fields of a
model.

This makes the preservation of the field ordering completely superflous
because field reorganization after the creation of the model state
wouldn't be taken into account.
2020-04-22 07:10:00 +02:00
..
operations Fixed #31499 -- Stored ModelState.fields into a dict. 2020-04-22 07:10:00 +02:00
__init__.py Implement swappable model support for migrations 2014-01-19 16:43:12 +00:00
autodetector.py Fixed #31499 -- Stored ModelState.fields into a dict. 2020-04-22 07:10:00 +02:00
exceptions.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
executor.py Refs #31318 -- Moved MigrationExecutor.collect_sql() to MigrationLoader. 2020-03-09 08:23:56 +01:00
graph.py Refs #29784 -- Switched to https:// links where available. 2018-09-26 08:48:47 +02:00
loader.py Fixed #24559 -- Made MigrationLoader.load_disk() catch more specific ModuleNotFoundError. 2020-04-20 07:22:20 +02:00
migration.py Simplified various __eq__() methods. 2017-09-28 09:18:37 -04:00
optimizer.py Refs #22608 -- Made app_label required when optimizing migrations. 2020-04-09 10:08:02 +02:00
questioner.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
recorder.py Fixed #31233 -- Closed database connections and cursors after use. 2020-02-06 15:35:23 +01:00
serializer.py Fixed #27914 -- Fixed serialization of nested classes in migrations. 2019-11-25 11:12:44 +01:00
state.py Fixed #31499 -- Stored ModelState.fields into a dict. 2020-04-22 07:10:00 +02:00
utils.py Refs #23919 -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
writer.py Fixed #30147 -- Simplified directory creation with os.makedirs(..., exist_ok=True). 2019-01-31 12:53:36 -05:00