|
|
@ -19,7 +19,7 @@ def home(request): |
|
|
|
|
|
|
|
|
if s: |
|
|
if s: |
|
|
if re.match(IP_ADDR_REGEX, s): |
|
|
if re.match(IP_ADDR_REGEX, s): |
|
|
abons = Abon.objects.filter(ip_address=s) |
|
|
|
|
|
|
|
|
abons = Abon.objects.filter(ip_addresses__ip=s) |
|
|
devices = Device.objects.filter(ip_address=s) |
|
|
devices = Device.objects.filter(ip_address=s) |
|
|
else: |
|
|
else: |
|
|
abons = Abon.objects.filter( |
|
|
abons = Abon.objects.filter( |
|
|
|