Exemplo n.º 1
0
def search(request):
    section = "organizations"
    search_proxies = OrganizationsSearchProxy.objects_by_account(request.account).all()
    if 'q' in request.GET:
        q = request.GET['q']
        if q != "":
            search_proxies = OrganizationsSearchProxy.search(request.account, q,ignorable_chars=["-","(",")"])
    return locals()
Exemplo n.º 2
0
def search_results(request):
    section = "organizations"
    search_proxies = OrganizationsSearchProxy.objects_by_account(request.account).all()
    if 'q' in request.GET:
        q = request.GET['q']
        if q != "":
            search_proxies = OrganizationsSearchProxy.search(request.account, q,ignorable_chars=["-","(",")"])

    return {"fragments":{"main_search_results":render_to_string("organizations/_search_results.html", locals())}}