mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Fixes #10980: Fix view tabs for plugin objects
This commit is contained in:
parent
0cb898fe7d
commit
6e05fd72e7
@ -11,6 +11,7 @@
|
||||
* [#10946](https://github.com/netbox-community/netbox/issues/10946) - Fix AttributeError exception when viewing a device with a primary IP and no platform assigned
|
||||
* [#10948](https://github.com/netbox-community/netbox/issues/10948) - Linkify primary IPs for VDCs
|
||||
* [#10957](https://github.com/netbox-community/netbox/issues/10957) - Add missing VDCs column to interface tables
|
||||
* [#10980](https://github.com/netbox-community/netbox/issues/10980) - Fix view tabs for plugin objects
|
||||
|
||||
## v3.4-beta1 (2022-11-16)
|
||||
|
||||
|
@ -3,6 +3,7 @@ from django.urls import reverse
|
||||
from django.utils.module_loading import import_string
|
||||
|
||||
from netbox.registry import registry
|
||||
from utilities.utils import get_viewname
|
||||
|
||||
register = template.Library()
|
||||
|
||||
@ -33,7 +34,7 @@ def model_view_tabs(context, instance):
|
||||
continue
|
||||
|
||||
if attrs := tab.render(instance):
|
||||
viewname = f"{app_label}:{model_name}_{config['name']}"
|
||||
viewname = get_viewname(instance, action=config['name'])
|
||||
active_tab = context.get('tab')
|
||||
tabs.append({
|
||||
'name': config['name'],
|
||||
|
Loading…
Reference in New Issue
Block a user