Commit a9f165ca by Kálmán Viktor

network: make ip addresses str

parent 9bd69e0a
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment