From 8edc3c4b9dddecac436a741aa54b8ada52f87dae Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 26 Mar 2012 10:27:01 -0500 Subject: Bump signoffs and mirror status JSON API versions Due to datetime formatting changes in Django 1.4, we know follow the ECMA specification more closely and use 'yyyy-mm-ddThh:mm_ssZ' format. As this could break existing users of the JSON data, bump the version. Signed-off-by: Dan McGee --- mirrors/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mirrors') diff --git a/mirrors/views.py b/mirrors/views.py index 2ef8654d..e93097a3 100644 --- a/mirrors/views.py +++ b/mirrors/views.py @@ -169,7 +169,7 @@ def default(self, obj): def status_json(request): status_info = get_mirror_statuses() data = status_info.copy() - data['version'] = 1 + data['version'] = 2 to_json = simplejson.dumps(data, ensure_ascii=False, cls=MirrorStatusJSONEncoder) response = HttpResponse(to_json, mimetype='application/json') -- cgit v1.2.3-54-g00ecf