Plugins Support Journaling? #21587
-
|
In the plug-in development, I see that they don’t support journaling. Are there plans to change that or a way that I could custom write the support for my instance? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @mr1716, Journaling is supported for plugin models. You don’t need to add any custom implementation for it. If your model subclasses One common “gotcha” is UI exposure: the feature can be present on the model, but you won’t see the Journal tab unless your model’s detail view/URLs are registered using the standard mechanisms (e.g. including the model URLs via Also, just a heads-up: the link you shared points to the Markdown source in the GitHub repo. The rendered plugin docs are here: Hope that helps! |
Beta Was this translation helpful? Give feedback.
Hi @mr1716,
Journaling is supported for plugin models. You don’t need to add any custom implementation for it.
If your model subclasses
netbox.models.NetBoxModel, journaling is already enabled by default (viaJournalingMixin, which provides thejournal_entriesrelation). If you’re not subclassingNetBoxModel, you can also opt in by inheriting fromJournalingMixindirectly.One common “gotcha” is UI exposure: the feature can be present on the model, but you won’t see the Journal tab unless your model’s detail view/URLs are registered using the standard mechanisms (e.g. including the model URLs via
get_model_urls()/ view registration).Also, just a heads-up: the link you shared points to t…