From cdc012bc47799a8af76d59daa3d38c902d3be001 Mon Sep 17 00:00:00 2001 From: chirac Date: Tue, 3 Apr 2018 20:11:19 +0200 Subject: [PATCH] Update auth.py --- freeradius_utils/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeradius_utils/auth.py b/freeradius_utils/auth.py index c20764e9..5d3195da 100644 --- a/freeradius_utils/auth.py +++ b/freeradius_utils/auth.py @@ -237,7 +237,7 @@ def detach(_=None): return radiusd.RLM_MODULE_OK def find_nas_from_request(nas_id): - nas = Interface.objects.filter(Q(domain=Domain.objects.filter(name=nas_id)) | Q(ipv4=IpList.objects.filter(ipv4=nas_id))).select_related('type').select_related('switch__stack') + nas = Interface.objects.filter(Q(domain=Domain.objects.filter(name=nas_id)) | Q(ipv4=IpList.objects.filter(ipv4=nas_id))).select_related('type').select_related('machine__switch__stack') return nas.first() def check_user_machine_and_register(nas_type, username, mac_address):