-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: pluginsRelates to the plugins frameworkRelates to the plugins frameworktype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
Milestone
Description
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
hoalex
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: pluginsRelates to the plugins frameworkRelates to the plugins frameworktype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application