def process_form(request): company = CompanyForm(request.POST) if company.is_valid(): company.save() company = CompanyForm() return render(request, "CompanyIndex.html", {"form": company}, {"mensaje": 'OK'})
def views_editar(request): views_editar = CompanyForm() return render(request, "editar.html", {"form": views_editar})
def views_index(request): views_index = CompanyForm() return render(request, "index.html", {"form": views_index})
def detalles(request): detalle = CompanyForm() return render(request, "detalle.html", {"form": detalle})
def index(request): company = CompanyForm() return render(request, "CompanyIndex.html", {"form": company})