Enable a PluginTemplateExtension subclass to register for multiple models #16726
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
NetBox version
v4.0.6
Feature type
New functionality
Proposed functionality
A subclass of
PluginTemplateExtension
must currently register against a single model. For example:This issue proposes adding an alternative
models
attribute to specify an iterable of models. For example:The content introduced by this class will then be embedded on the relevant view for each of the listed models.
If
models
is defined, it will take precedence overmodel
.Use case
This obviates the need to create a redundant
PluginTemplateExtension
subclass for each core model.Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: