diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/docs/NEWS.rst | 2 | ||||
| -rw-r--r-- | src/mailman/rest/helpers.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst index da8ede64f..729f1e1f9 100644 --- a/src/mailman/docs/NEWS.rst +++ b/src/mailman/docs/NEWS.rst @@ -96,6 +96,8 @@ REST * Fix pagination values `start` and `total_size` in the REST API. Given by Aurélien Bompard. (Closes: #154) * JSON representations for held message now include a ``self_link``. + * When ``[devmode]enabled`` is set, the JSON output is sorted. Given by + Aurélien Bompard. Other ----- diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index bc9b5538a..0cdd40e7e 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -113,7 +113,7 @@ def etag(resource): etag = hashlib.sha1(hashfood).hexdigest() resource['http_etag'] = '"{0}"'.format(etag) return json.dumps(resource, cls=ExtendedEncoder, - sort_keys=as_boolean(config.devmode.enabled)) + sort_keys=as_boolean(config.devmode.enabled)) |
