Skip to content

Commit

Permalink
Remove backend rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Sep 30, 2024
1 parent 4579e84 commit 002bc17
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions inventree_wireviz/wireviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ def get_ui_panels(self, instance_type, instance_id, request, **kwargs):
panels = []
part = None

print("get_ui_panel:", instance_type, instance_id)

if instance_type == 'part':
try:
part = Part.objects.get(pk=instance_id)
Expand All @@ -242,11 +240,6 @@ def get_ui_panels(self, instance_type, instance_id, request, **kwargs):
'label': 'Harness Diagram',
'context': ctx,
'source': '/static/plugin/wireviz.js',
'content': render_template(
self,
'wireviz/harness_panel.html',
context=self.panel_context_from_instance(part),
)
})

return panels
Expand Down

0 comments on commit 002bc17

Please sign in to comment.