Establish a central registry for tracking the application of features (e.g. webhooks, custom links) to models #4368
Labels
status: accepted
This issue has been accepted for implementation
type: housekeeping
Changes to the application which do not directly impact the end user
Proposed Changes
Establish an internal registry to use for tracking which models within NetBox support which features. This should be similar in nature to the way Django registers models for its admin site. (Currently, this is accomplished through the use of several constants which each define a QuerySet filter returning the appropriate models.)
This proposal does NOT effect any changes to the assignment of these features. It is an internal change only.
Justification
Employing a central registry obviates the need to maintain explicit lists of models and simplifies the registration process. We could use a decorator, such as:
The text was updated successfully, but these errors were encountered: