Browse Source

Merge pull request #3942 from hSaria/3941-ip-assign-exception

Fixes #3941: AttributeError when searching on IP assign
Jeremy Stretch 6 years ago
parent
commit
f220b3f128
2 changed files with 4 additions and 3 deletions
  1. 3 2
      docs/release-notes/version-2.7.md
  2. 1 1
      netbox/ipam/views.py

+ 3 - 2
docs/release-notes/version-2.7.md

@@ -1,7 +1,8 @@
 # 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
 
 ---
@@ -180,7 +181,7 @@ REDIS = {
         'SSL': False,
     }
 }
-``` 
+```
 
 Note that the `CACHE_DATABASE` parameter has been removed and the connection settings have been duplicated for both
 `webhooks` and `caching`. This allows the user to make use of separate Redis instances if desired. It is fine to use the

+ 1 - 1
netbox/ipam/views.py

@@ -760,7 +760,7 @@ class IPAddressAssignView(PermissionRequiredMixin, View):
                 'vrf', 'tenant', 'interface__device', 'interface__virtual_machine'
             )
             # Limit to 100 results
-            addresses = filters.IPAddressFilter(request.POST, addresses).qs[:100]
+            addresses = filters.IPAddressFilterSet(request.POST, addresses).qs[:100]
             table = tables.IPAddressAssignTable(addresses)
 
         return render(request, 'ipam/ipaddress_assign.html', {