def realizarBusqueda(request): if request.method == 'POST': form = search(request.POST) if form.is_valid(): sl = form.save() return searchImage(request, etiqueta=sl.busqueda) else: form = search() return render(request, 'search.html', {'form':form})
def buscaAmigos(request): if request.method == 'POST': form = search(request.POST) if form.is_valid(): sl = form.save() return searchFriend(request, nombre=sl.busqueda) else: form = search() return render(request, 'search.html', {'form': form})
def buscaAmigos(request): if request.method == 'POST': form = search(request.POST) if form.is_valid(): sl = form.save() return searchFriend(request, nombre=sl.busqueda) else: form = search() return render(request, 'search.html', {'form':form})
def realizarBusqueda(request): if request.method == 'POST': form = search(request.POST) if form.is_valid(): sl = form.save() return searchImage(request, etiqueta=sl.busqueda) else: form = search() return render(request, 'search.html', {'form': form})