Commit 266f0cc0 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou

helpdesk: Fix network interface queryset

parent f34a03d8
......@@ -185,7 +185,8 @@ def account(request, search_query):
if is_ip:
try:
nic = NetworkInterface.objects.get(ipv4=search_query).exclude(machine__deleted=True)
nic = NetworkInterface.objects.filter(ipv4=search_query).exclude(
machine__deleted=True).get()
search_query = nic.machine.userid
is_uuid = True
except NetworkInterface.DoesNotExist:
......
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 to comment