2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 03:56:43 +00:00
Oliver Walters 4912d5507b peppercord
2017-03-28 23:46:17 +11:00

12 lines
296 B
Python

from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from .models import Warehouse, StockItem
def index(request):
warehouses = Warehouse.objects.filter(parent=None)
return render(request, 'stock/index.html', {'warehouses': warehouses})