2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 21:20:56 +00:00

Add stock information for top-level stock page

This commit is contained in:
Oliver Walters
2019-09-27 09:59:14 +10:00
parent b876d31d09
commit 3e2a5263a5
6 changed files with 147 additions and 50 deletions

View File

@ -53,6 +53,9 @@ class StockIndex(ListView):
context['locations'] = locations
context['items'] = StockItem.objects.all()
context['loc_count'] = StockLocation.objects.count()
context['stock_count'] = StockItem.objects.count()
return context