mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-22 20:56:30 +00:00
Consolidated 'Part' app views
- Improved templating - Part tree open/close status stored to session
This commit is contained in:
InvenTree
@@ -23,7 +23,7 @@ from InvenTree.views import AjaxCreateView, AjaxUpdateView, AjaxDeleteView
|
||||
|
||||
class PartIndex(ListView):
|
||||
model = Part
|
||||
template_name = 'part/index.html'
|
||||
template_name = 'part/category.html'
|
||||
context_object_name = 'parts'
|
||||
|
||||
def get_queryset(self):
|
||||
@@ -128,7 +128,7 @@ class CategoryDetail(DetailView):
|
||||
model = PartCategory
|
||||
context_object_name = 'category'
|
||||
queryset = PartCategory.objects.all()
|
||||
template_name = 'part/category_detail.html'
|
||||
template_name = 'part/category.html'
|
||||
|
||||
|
||||
class CategoryEdit(AjaxUpdateView):
|
||||
|
Reference in New Issue
Block a user