Extend the HTMXSelect widget to support other HTTP methods #10372

Closed
opened 2025-12-29 21:30:36 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Oct 16, 2024).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

The HTMXSelect widget is used to dynamically re-render a form based on the selection of a field (e.g. when changing the type of a remote data source). Currently it supports only GET requests to accomplish this. This proposal would add support for all HTTP methods supported by HTMX: GET, POST, DELETE, PUT, and PATCH.

Justification

POST support is required to use HTMXSelect in a bulk edit form, as bulk edit views must always be accessed via a POST request to capture the selected object IDs. Support for the remaining methods should be added in the interest of completeness.

Originally created by @jeremystretch on GitHub (Oct 16, 2024). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes The HTMXSelect widget is used to dynamically re-render a form based on the selection of a field (e.g. when changing the type of a remote data source). Currently it supports only GET requests to accomplish this. This proposal would add support for all HTTP methods supported by HTMX: GET, POST, DELETE, PUT, and PATCH. ### Justification POST support is required to use HTMXSelect in a bulk edit form, as bulk edit views must always be accessed via a POST request to capture the selected object IDs. Support for the remaining methods should be added in the interest of completeness.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 21:30:36 +01:00
adam closed this issue 2025-12-29 21:30:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10372