3.4-beta1: Plugin object detail views with tabs cause exceptions #10980
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
generic/object.html
, e.g. for a recordExpected Behavior
The object view opens in the GUI, displaying object details
Observed Behavior
A "NoReverseMatch" is generated for the view.
The problem is caused by the following code in
netbox/utilities/templatetags/tabs.py
:When assembled this way,
viewname
does not include theplugin
prefix. As a result, NetBox tries to resolve the view namesnetbox_dns:record_journal
andnetbox_dns:record_changelog
, which do not exist (the correct names would beplugin:netbox_dns:record_journal
andplugin:netbox_dns:record_changelog
).This can be worked around by removing the tabs from the object view, but that's generally not an optimal solution as it inhibits the use of the change log and journal functionality.
The text was updated successfully, but these errors were encountered: