Skip to content

Extend ObjectEditView to support HTMX requests #17221

Closed
@jeremystretch

Description

@jeremystretch

NetBox version

v4.1-beta1

Feature type

New functionality

Proposed functionality

Extend NetBox's generic ObjectEditView to support modifying objects via HTMX POST requests. This view currently supports HTMX only for GET requests.

This will entail checking whether a POST request is HTMX-enabled, and if so returning the applicable rendered content directly (rather than returning a 302 redirect).

Use case

This change is necessary to support editing objects in place within an HTML template, and will unlock future functionality.

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

complexity: mediumRequires a substantial but not unusual amount of effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions