diff options
| author | Simon Charette <charette.s@gmail.com> | 2020-04-21 23:14:34 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-04-22 07:10:00 +0200 |
| commit | 06889d62063f0d12aaf618101dfc1b07333117be (patch) | |
| tree | bf1d793575aa49378cc29996010fee9ea12b9dcc /docs/internals/contributing/writing-code/javascript.txt | |
| parent | 696024fb73d522e1c7d0a704200231a35928dcad (diff) | |
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.
Diffstat (limited to 'docs/internals/contributing/writing-code/javascript.txt')
0 files changed, 0 insertions, 0 deletions
