mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-28 03:37:34 +02:00
PluginContentPanel should not call should_render()
This commit is contained in:
@@ -392,8 +392,7 @@ class PluginContentPanel(Panel):
|
|||||||
self.method = method
|
self.method = method
|
||||||
|
|
||||||
def render(self, context):
|
def render(self, context):
|
||||||
if not self.should_render(context):
|
# Override the default render() method to simply embed rendered plugin content
|
||||||
return ''
|
|
||||||
obj = context.get('object')
|
obj = context.get('object')
|
||||||
return _get_registered_content(obj, self.method, context)
|
return _get_registered_content(obj, self.method, context)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user