2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-04 01:35:54 +00:00

Add detail pane to top-level part view

This commit is contained in:
Oliver Walters
2019-09-27 10:04:20 +10:00
parent 3e2a5263a5
commit 427f47310b
5 changed files with 183 additions and 36 deletions

View File

@@ -56,6 +56,8 @@ class PartIndex(ListView):
children = PartCategory.objects.filter(parent=None)
context['children'] = children
context['category_count'] = PartCategory.objects.count()
context['part_count'] = Part.objects.count()
return context