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

Fixing python errors

This commit is contained in:
Oliver
2017-04-11 17:21:05 +10:00
parent 1cddec1035
commit 338dcd3b72
19 changed files with 28 additions and 25 deletions

View File

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