Пример #1
0
def search(request):
    section = "groups"
    search_proxies = GroupSearchProxy.objects_by_account(request.account).all()
    if 'q' in request.GET:
        q = request.GET['q']
        if q != "":
            search_proxies = GroupSearchProxy.search(request.account, q,ignorable_chars=["-","(",")"])
    return locals()
Пример #2
0
def search_results(request):
    section = "groups"
    search_proxies = GroupSearchProxy.objects_by_account(request.account).all()
    if 'q' in request.GET:
        q = request.GET['q']
        if q != "":
            search_proxies = GroupSearchProxy.search(request.account, q,ignorable_chars=["-","(",")"])

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