Provide basic object forms as part of plugins framework #6019

Closed
opened 2025-12-29 19:35:47 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 28, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.6

Feature type

New functionality

Proposed functionality

Formally support several form classes for basic use by plugins, suitable for use with their corresponding generic views. These include:

  • Create/edit a single object (ObjectEditView.model_form)
  • Import object from CSV data (BulkImportView.model_form)
  • Edit multiple objects (BulkEditView.form)
  • FilterSet form (ObjectListView.filterset_form)

The current state of forms in NetBox core is a bit messy, so for now it seems prudent to introduce an entirely new set of base form classes for use by plugins, which inherit from the relevant core forms to provide support for custom fields and other NetBox features.

Use case

Enables the use of core forms by plugins.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Jan 28, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.6 ### Feature type New functionality ### Proposed functionality Formally support several form classes for basic use by plugins, suitable for use with their corresponding generic views. These include: * Create/edit a single object (`ObjectEditView.model_form`) * Import object from CSV data (`BulkImportView.model_form`) * Edit multiple objects (`BulkEditView.form`) * FilterSet form (`ObjectListView.filterset_form`) The current state of forms in NetBox core is a bit messy, so for now it seems prudent to introduce an entirely new set of base form classes for use by plugins, which inherit from the relevant core forms to provide support for custom fields and other NetBox features. ### Use case Enables the use of core forms by plugins. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featuretopic: plugins labels 2025-12-29 19:35:47 +01:00
adam closed this issue 2025-12-29 19:35:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6019