def search_orders_admin(request): keywords = request.POST['keywords'] order_type = request.POST['order_type'] orders = Historico.search(keywords, estado=order_type) return HttpResponse(orders_to_table_admin(orders))