mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
16 lines
399 B
Python
16 lines
399 B
Python
from django.shortcuts import render, get_object_or_404
|
|
from django.http import HttpResponse
|
|
|
|
from .models import Supplier
|
|
|
|
|
|
def index(request):
|
|
return HttpResponse("This is the suppliers page")
|
|
|
|
|
|
def supplierDetail(request, supplier_id):
|
|
supplier = get_object_or_404(Supplier, pk=supplier_id)
|
|
|
|
return render(request, 'supplier/detail.html',
|
|
{'supplier': supplier})
|