From 875cc597e924b74e0a6fd1492d03102ae63eb174 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 1 Aug 2016 22:20:44 +0200 Subject: mirrors: api: Add ISOs information to JSON output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg Signed-off-by: Angel Velasquez --- mirrors/views/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mirrors/views/api.py b/mirrors/views/api.py index b72585e6..581a0d5e 100644 --- a/mirrors/views/api.py +++ b/mirrors/views/api.py @@ -26,6 +26,7 @@ def default(self, obj): country = obj.country data['country'] = unicode(country.name) data['country_code'] = country.code + data['isos'] = obj.mirror.isos return data if isinstance(obj, MirrorProtocol): return unicode(obj) -- cgit v1.2.3-54-g00ecf