예제 #1
0
def _render_search_page(queryset, request, template='propiedad/search.html'):
    resultado = paginate(request, queryset, PROPIEDADES_POR_PAGINA)
    return render_to_response(template, {'resultado': resultado},
                              context_instance=RequestContext(request))
예제 #2
0
def _render_search_page(queryset, request, template='listing/search.html'):
    results = paginate(request, queryset, config.PROPERTIES_PER_PAGE)
    return render_to_response(template, {'results': results},
                              context_instance=RequestContext(request))