Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk editing/deleting objects by filter yields a server error #964

Closed
jeremystretch opened this issue Mar 14, 2017 · 0 comments
Closed

Bulk editing/deleting objects by filter yields a server error #964

jeremystretch opened this issue Mar 14, 2017 · 0 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

jeremystretch commented Mar 14, 2017

Issue type: Bug report

Python version: 2.7.6
NetBox version: 1.9.1

Steps to reproduce:

  1. Create a range of IP addresses: 192.0.2.[1-254]/24.
  2. Filter the IP address list by parent prefix 192.0.2.0/24 to show all of these IPs.
  3. Check the "select all" box at top left, and then check the "Select all 254 IP addresses matching query" option and click "Delete all."

This will yield an error:

TypeError at /ipam/ip-addresses/delete/
'IPAddressFilter' object is not iterable

This is due to a change in version 1.0 of the django-filter library, which no longer proxies filter querysets. This bug affects all object types, not just IP addresses.

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Mar 14, 2017
@jeremystretch jeremystretch changed the title Bulk deleting objects by filter yields a server error Bulk editing/deleting objects by filter yields a server error Mar 14, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant