Closed
Description
Change Type
Addition
Area
Plugins
Proposed Changes
When subclassing NetBoxModel, the Journaling MixIn is automatically included in a new model. However, it took me a while to figure out how to include that tab in the detail view of the model and extend the URL. It requires:
from django.urls import path, include
from utilities.urls import get_model_urls
urlpatterns = (
# Standard URL Patterns
path("[seturl]/<int:pk>/", include(get_model_urls("[plugin_name]", "[model_name]")),),
)
This may be obvious to those who have more Django programming experience than I do, but I think it would be a worthwhile addition to the plugin development documentation to help people take advantage of the included MixIns.