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

Add 'detail' view for stock item

This commit is contained in:
Oliver
2018-04-14 15:26:42 +10:00
parent 89ee09b01f
commit ce854e3119
4 changed files with 30 additions and 2 deletions

View File

@ -38,6 +38,6 @@ def index(request):
def detail(request, pk):
item = get_object_or_404(Stock, pk=pk)
stock = get_object_or_404(StockItem, pk=pk)
return render(request, 'stock/detail.html', {'item' : item})
return render(request, 'stock/detail.html', {'item' : stock})