From d83eb7dfe9b073dd5d6cbc593fb8ef5006697277 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 2 Feb 2017 14:01:20 +0000 Subject: [PATCH] Cname in --- machines/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/views.py b/machines/views.py index 62550acf..e5f21e2a 100644 --- a/machines/views.py +++ b/machines/views.py @@ -738,7 +738,7 @@ def mac_ip_list(request): @login_required @permission_required('serveur') def alias(request): - alias = Domain.objects.filter(interface_parent=None).filter(cname=Domain.objects.filter(interface_parent__in=Interface.objects.exclude(ipv4=None))) + alias = Domain.objects.filter(interface_parent=None).filter(cname__in=Domain.objects.filter(interface_parent__in=Interface.objects.exclude(ipv4=None))) seria = DomainSerializer(alias, many=True) return JSONResponse(seria.data)