aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/api/views.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-08-04 22:06:40 +0300
committerBerker Peksag <berker.peksag@gmail.com>2014-08-04 22:06:40 +0300
commit6fa978241583b8d618cd22bfb53f657a64580c03 (patch)
treec393e16b27e74c1eb52c8758666a92e2b13cdd36 /mediagoblin/plugins/api/views.py
parent20238f54a660047b72a1c25bce14f3bd3e22f03d (diff)
downloadmediagoblin-6fa978241583b8d618cd22bfb53f657a64580c03.tar.lz
mediagoblin-6fa978241583b8d618cd22bfb53f657a64580c03.tar.xz
mediagoblin-6fa978241583b8d618cd22bfb53f657a64580c03.zip
Make sort_keys True to avoid hash randomize feature in Python 3.
Diffstat (limited to 'mediagoblin/plugins/api/views.py')
-rw-r--r--mediagoblin/plugins/api/views.py2
1 files changed, 1 insertions, 1 deletions
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):