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

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