2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Fix build index template

This commit is contained in:
Oliver Walters
2022-05-07 22:47:48 +10:00
parent 06e79ee91b
commit e57a3870c6
3 changed files with 3 additions and 3 deletions

View File

@ -622,7 +622,7 @@ class PanelMixin:
context['object'] = view.get_object()
except AttributeError:
pass
return context
def render_panels(self, view, request, context):

View File

@ -64,7 +64,7 @@ class CustomPanelSample(PanelMixin, SettingsMixin, IntegrationPluginBase):
'icon': 'fas fa-boxes',
'content': '<b>Hello world!</b>',
'description': 'A simple panel which renders hello world',
'javascript': 'alert("Hello world");',
'javascript': 'console.log("Hello world, from a custom panel!");',
})
# This panel will *only* display on the PartDetail view