(request)
return HttpResponse({})
Get the list of current buckets to autocomplete.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :returns: :class:`django.http.HttpResponse`
Get the list of current buckets to autocomplete.
Get the list of current buckets to autocomplete .
def bucket_autocomplete(request):
    """
    Get the list of current buckets to autocomplete.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :returns: :class:`django.http.HttpResponse`
    """

    if request.method == "POST" and request.is_ajax():
        term = request.POST.get('term', None)
        if term:
            return get_bucket_autocomplete(term)
    return HttpResponse({})
def bucket_autocomplete ( request ) : if request . method == "POST" and request . is_ajax ( ) : term = request . POST . get ( 'term' , None ) if term : return get_bucket_autocomplete ( term ) return HttpResponse ( { } )