Bulk deletion of Prefix objects will only delete the first selected #8567

Closed
opened 2025-12-29 20:38:16 +01:00 by adam · 2 comments
Owner

Originally created by @endreszabo on GitHub (Sep 4, 2023).

NetBox version

v3.5.8

Python version

3.11

Steps to Reproduce

  • Select multiple Prefixes in the Web UI.
  • Click on delete button below the table.
  • Landing page only shows 1 (one) prefix selected for deletion.
  • DevTools confirms that multiple Prefix model pk values have been POSTed individually, overwriting each other.

Expected Behavior

Prefixes-to-be-deleted pks should have been POSTed as a list.

Observed Behavior

Only one Prefix (the first one in the submitted form) is to be removed.

Originally created by @endreszabo on GitHub (Sep 4, 2023). ### NetBox version v3.5.8 ### Python version 3.11 ### Steps to Reproduce - Select multiple Prefixes in the Web UI. - Click on delete button below the table. - Landing page only shows 1 (one) prefix selected for deletion. - DevTools confirms that multiple Prefix model `pk` values have been POSTed individually, overwriting each other. ### Expected Behavior Prefixes-to-be-deleted `pk`s should have been POSTed as a list. ### Observed Behavior Only one Prefix (the first one in the submitted form) is to be removed.
adam closed this issue 2025-12-29 20:38:16 +01:00
Author
Owner

@endreszabo commented on GitHub (Sep 4, 2023):

Closing for now as even I can't reproduce it once I deleted the prefixes via the API.

@endreszabo commented on GitHub (Sep 4, 2023): Closing for now as even I can't reproduce it once I deleted the prefixes via the API.
Author
Owner

@kkthxbye-code commented on GitHub (Sep 4, 2023):

DevTools confirms that multiple Prefix model pk values have been POSTed individually, overwriting each other.

Just for reference, that's not how it works. It's pretty standard to parse repeated keys as a list, so django converts test=123&test=321 to something like {'test': ['123', '321']}.

@kkthxbye-code commented on GitHub (Sep 4, 2023): > DevTools confirms that multiple Prefix model pk values have been POSTed individually, overwriting each other. Just for reference, that's not how it works. It's pretty standard to parse repeated keys as a list, so django converts `test=123&test=321` to something like `{'test': ['123', '321']}`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8567