Consolidated 'Part' app views

- Improved templating
- Part tree open/close status stored to session
This commit is contained in:
Oliver committed 2018-05-04 18:55:55 +10:00
1 parent 389908c67a
commit 4f63d12837
14 files changed
+262 -293

No files matched your search

+2 -2
View File
@@ -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):