2
0
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:
Oliver
2018-05-04 18:53:39 +10:00
parent 389908c67a
commit 4f63d12837
14 changed files with 262 additions and 293 deletions

@@ -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):