Issue 10815

Title
Model._fields should be an ordered dict
Priority
feature
Status
unread
Nosy list
nicoe
Assigned to
Keywords

Created on 2021-09-30.13:48:29 by nicoe, last changed 3 months ago by nicoe.

Messages

Author: [hidden] (nicoe) Tryton committer
Date: 2021-09-30.13:48:29

We are sometimes relying on keeping Model._fields ordered in some processing thus we sort the keys of the dictionary.
It might be interesting to replace the dictionary by an ordered dict to be ensured that we can loop always on the same order (of course there's the fact that cpython dicts no preserve the insertion order but it's still an implementation detail).

History
Date User Action Args
2021-09-30 13:48:29nicoecreate

Showing 10 items. Show all history (warning: this could be VERY long)