Skip to content

Provide basic object forms as part of plugins framework #8488

@jeremystretch

Description

@jeremystretch

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

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtopic: pluginsRelates to the plugins frameworktype: 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