From a9f165ca8303ace2940e600732c193730fd7cb3d Mon Sep 17 00:00:00 2001
From: Kálmán Viktor <kviktor@cloud.bme.hu>
Date: Thu, 5 Jun 2014 13:22:09 +0200
Subject: [PATCH] network: make ip addresses str

---
 circle/network/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/circle/network/views.py b/circle/network/views.py
index d4fcb0c..a0566c9 100644
--- a/circle/network/views.py
+++ b/circle/network/views.py
@@ -351,8 +351,8 @@ class HostDetail(LoginRequiredMixin, SuperuserRequiredMixin,
             host = Host.objects.get(pk=kwargs['pk'])
             host = {
                 'hostname': host.hostname,
-                'ipv4': host.ipv4,
-                'ipv6': host.ipv6,
+                'ipv4': str(host.ipv4),
+                'ipv6': str(host.ipv6),
                 'fqdn': host.get_fqdn()
             }
             return HttpResponse(json.dumps(host),
--
libgit2 0.26.0