3.4-beta1: Plugin objects without ObjectJournalView cause exceptions #10982
Labels
beta
Concerns a bug/feature in a beta release
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.4-beta1
Python version
3.8
Steps to Reproduce
netbox-dns
)Expected Behavior
The object detail view is displayed for the instance.
Observed Behavior
The object detail view still is not displayed, instead there is a new
NoReverseMatch
exception:This is caused by the missing of a
nameserver_journal
view for the NameServer model. The current implementation ofmodel_view_tags
seems to assume that there is at least anObjectChangeLogView
and anObjectJournalView
defined for each object model and tries to render both, and throws an exception if one of them is missing.It can be worked around by always defining both for all models that have a detail view template inheriting from
generic/object.html
or by disabling tabs in the inheriting template code.Either NetBox should detect the presence of an
ObjectChangeLogView
andObjectJournalView
for a model and handle either one's absence gracefully (i.e. by ignoring it), or there should be an option to disable those views and a mention of the change in behaviour as a breaking change. The former is probably the better option.The text was updated successfully, but these errors were encountered: