django1/django/db/migrations/operations
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
..
__init__.py Fixed #11964 -- Added support for database check constraints. 2018-07-10 15:32:33 -04:00
base.py Replaced Operation._get_model_tuple() by ModelTuple.from_model(). 2020-04-09 10:08:06 +02:00
fields.py Fixed #31499 -- Stored ModelState.fields into a dict. 2020-04-22 07:10:00 +02:00
models.py Fixed #31499 -- Stored ModelState.fields into a dict. 2020-04-22 07:10:00 +02:00
special.py Refs #27914 -- Used __qualname__ in model operations' deconstruct(). 2017-06-14 10:10:22 -04:00
utils.py Fixed #31499 -- Stored ModelState.fields into a dict. 2020-04-22 07:10:00 +02:00