mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-23 11:55:54 +00:00
Added a categorylist page
Displays list of all top-level part categories
This commit is contained in:
@@ -13,6 +13,13 @@ def partdetail(request, part_id):
|
||||
return render(request, 'part/detail.html',
|
||||
{'part': part})
|
||||
|
||||
def categorylist(request):
|
||||
categories = PartCategory.objects.filter(parent = None)
|
||||
|
||||
return render(request, 'part/categorylist.html',
|
||||
{'categories': categories
|
||||
})
|
||||
|
||||
def category(request, category_id):
|
||||
|
||||
# Find the category
|
||||
|
Reference in New Issue
Block a user