2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-23 11:55:54 +00:00

Simple supplier template

This commit is contained in:
Oliver Walters
2017-03-27 22:05:35 +11:00
parent ffcd56d5ba
commit abe0bbf2e4
5 changed files with 18 additions and 5 deletions

View File

@@ -6,14 +6,14 @@ from .models import PartCategory, Part
def index(request):
return HttpResponse("Hello world. This is the parts page")
def partdetail(request, part_id):
def partDetail(request, part_id):
part = get_object_or_404(Part, pk=part_id)
return render(request, 'part/detail.html',
{'part': part})
def categorylist(request):
def categoryList(request):
categories = PartCategory.objects.filter(parent = None)
return render(request, 'part/categorylist.html',