From 6fa978241583b8d618cd22bfb53f657a64580c03 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Mon, 4 Aug 2014 22:06:40 +0300 Subject: [PATCH] Make sort_keys True to avoid hash randomize feature in Python 3. --- mediagoblin/plugins/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/plugins/api/views.py b/mediagoblin/plugins/api/views.py index a9aaacee..02fd8107 100644 --- a/mediagoblin/plugins/api/views.py +++ b/mediagoblin/plugins/api/views.py @@ -104,7 +104,7 @@ def api_test(request): # TODO: This is the *only* thing using Response() here, should that # not simply use json_response()? - return Response(json.dumps(user_data)) + return Response(json.dumps(user_data, sort_keys=True)) def get_entries(request): -- 2.25.1