mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Add plugin view support for most of the remaining views
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user