Fix #492 -- Force deterministic ordering of some signals

This commit is contained in:
Raphael Michel
2017-05-15 13:09:23 +02:00
parent 5ff6d0b014
commit 7769aaccea
6 changed files with 8 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ class GlobalSettingsForm(SettingsForm):
))
])
responses = register_global_settings.send(self)
for r, response in responses:
for r, response in sorted(responses, key=lambda r: str(r[0])):
for key, value in response.items():
# We need to be this explicit, since OrderedDict.update does not retain ordering
self.fields[key] = value