mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 04:32:51 -06:00
Merge pull request #3942 from hSaria/3941-ip-assign-exception
Fixes #3941: AttributeError when searching on IP assign
This commit is contained in:
commit
f220b3f128
@ -1,7 +1,8 @@
|
|||||||
# v2.7.1 (FUTURE)
|
# v2.7.1 (FUTURE)
|
||||||
|
|
||||||
# Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
|
* [#3941](https://github.com/netbox-community/netbox/issues/3941) - Fixed exception when attempting to assign IP to interface
|
||||||
* [#3944](https://github.com/netbox-community/netbox/issues/3944) - Fix AttributeError exception when viewing prefixes list
|
* [#3944](https://github.com/netbox-community/netbox/issues/3944) - Fix AttributeError exception when viewing prefixes list
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -760,7 +760,7 @@ class IPAddressAssignView(PermissionRequiredMixin, View):
|
|||||||
'vrf', 'tenant', 'interface__device', 'interface__virtual_machine'
|
'vrf', 'tenant', 'interface__device', 'interface__virtual_machine'
|
||||||
)
|
)
|
||||||
# Limit to 100 results
|
# Limit to 100 results
|
||||||
addresses = filters.IPAddressFilter(request.POST, addresses).qs[:100]
|
addresses = filters.IPAddressFilterSet(request.POST, addresses).qs[:100]
|
||||||
table = tables.IPAddressAssignTable(addresses)
|
table = tables.IPAddressAssignTable(addresses)
|
||||||
|
|
||||||
return render(request, 'ipam/ipaddress_assign.html', {
|
return render(request, 'ipam/ipaddress_assign.html', {
|
||||||
|
Loading…
Reference in New Issue
Block a user