Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide basic object forms as part of plugins framework #8488

Closed
Tracked by #8333
jeremystretch opened this issue Jan 28, 2022 · 0 comments
Closed
Tracked by #8333

Provide basic object forms as part of plugins framework #8488

jeremystretch opened this issue Jan 28, 2022 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation topic: plugins Relates to the plugins framework type: feature Introduction of new functionality to the application
Milestone

Comments

@jeremystretch
Copy link
Member

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

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application topic: plugins Relates to the plugins framework labels Jan 28, 2022
@jeremystretch jeremystretch added this to the v3.2 milestone Jan 28, 2022
@jeremystretch jeremystretch self-assigned this Jan 28, 2022
jeremystretch added a commit that referenced this issue Jan 31, 2022
Closes #8488: Support form components for plugins
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation topic: plugins Relates to the plugins framework type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

1 participant