2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-09 21:30:54 +00:00

Add plugin view support for most of the remaining views

This commit is contained in:
Oliver Walters
2022-05-06 23:32:42 +10:00
parent 243e3ff37d
commit 60f799c90a
5 changed files with 16 additions and 16 deletions

View File

@@ -67,7 +67,7 @@ class PartIndex(InvenTreeRoleMixin, ListView):
def get_context_data(self, **kwargs):
context = super(PartIndex, self).get_context_data(**kwargs).copy()
context = super().get_context_data(**kwargs).copy()
# View top-level categories
children = PartCategory.objects.filter(parent=None)
@@ -969,7 +969,7 @@ class PartParameterTemplateDelete(AjaxDeleteView):
ajax_form_title = _("Delete Part Parameter Template")
class CategoryDetail(InvenTreeRoleMixin, DetailView):
class CategoryDetail(InvenTreeRoleMixin, InvenTreePluginMixin, DetailView):
""" Detail view for PartCategory """
model = PartCategory