1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #3668: search address by DNS name when assigning

This commit is contained in:
Saria Hajjar
2020-01-09 10:00:02 +00:00
parent 770f4c962c
commit 1cdbfd6d60
5 changed files with 10 additions and 2 deletions

View File

@@ -745,6 +745,7 @@ class IPAddressAssignView(PermissionRequiredMixin, View):
).filter(
vrf=form.cleaned_data['vrf'],
address__istartswith=form.cleaned_data['address'],
dns_name__icontains=form.cleaned_data['dns_name'],
)[:100] # Limit to 100 results
table = tables.IPAddressAssignTable(queryset)