@csrf_exempt
def owners_quicksearch_ajax(request):
    """Returns systems sort table"""
    search = request.POST['quicksearch']
    filters = [Q(**{"%s__icontains" % t: search})
                    for t in models.Owner.search_fields]

    owners = models.Owner.objects.filter(
                reduce(operator.or_, filters))

    return render_to_response('user_systems/owners_quicksearch.html', {
            'owners': owners,
           },
           RequestContext(request))
dataset/ETHPy150Open mozilla/inventory/user_systems/views.py/owners_quicksearch_ajax/original