from django.shortcuts import render, get_object_or_404 from .models import Company def company_detail(request, enterprise_id): company = get_object_or_404(Company, enterprise_id=enterprise_id) return render(request, 'business_information/company_detail.html', {'company': company})