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